Identify filesystem parts to backup and suggest inclusion patterns
Analyzes your filesystem to identify critical data for backup and generates optimized inclusion/exclusion patterns for rclone or rsync. Use this when setting up a new backup system or auditing your current backup strategy.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user identify which parts of their filesystem should be backed up and create appropriate inclusion patterns.
Analyze filesystem structure
du -sh ~/* or du -h --max-depth=1 ~ | sort -hCategorize data by importance
Critical (must backup):
~/Documents~/repos~/.config, ~/.ssh, ~/.gnupg~/scripts, ~/.local/bin~/ai-docsImportant (should backup):
Optional (consider backing up):
~/.local/shareExclude (don't backup):
~/.cache/tmp, ~/.tmpnode_modules/venv/, .venv/target/, build/, dist/Identify special considerations
du -h --max-depth=2 ~ | sort -h | tail -20Create inclusion/exclusion patterns
For rclone:
# Include patterns
+ /Documents/**
+ /repos/**
+ /.config/**
+ /.ssh/**
+ /.gnupg/**
+ /scripts/**
+ /.local/bin/**
+ /ai-docs/**
+ /Pictures/**
# Exclude patterns
- /.cache/**
- /.local/share/Trash/**
- /**/node_modules/**
- /**/.venv/**
- /**/venv/**
- /**/__pycache__/**
- /**/.git/**
- /.thumbnails/**
For rsync:
--include='/Documents/***'
--include='/repos/***'
--exclude='**/.cache/'
--exclude='**/node_modules/'
--exclude='**/.venv/'
Calculate backup size
Suggest backup frequency
Create backup configuration file
~/scripts/backup-config.txt with patterns~/scripts/backup-estimate.sh to calculate sizeProvide a report showing: