A cron-safe Bash script to back up your home directory
(or a custom list of directories) to a remote server using rsync over SSH.
Each host backs up into its own directory, automatically named after the local hostname.
- Uses
rsyncover SSH (key-based auth recommended) - Automatically detects hostname (Arch Linux–safe)
- Sensible default excludes (caches, VCS dirs, build artifacts, downloads, etc.)
- Supports dry runs
- Logs to an XDG-compliant state directory
- Designed for non-interactive use (cron/systemd timers)
bashrsyncssh- SSH access to the remote backup server
./scripts/install.shInstall rsync-backup-ez
sudo install -vDm755 "bin/rsync-backup-ez" "/usr/local/bin/rsync-backup-ez"Install rsync-backup-ez shell completion
## Zsh completion
sudo install -vDm644 "completion/_rsync-backup-ez" "/usr/share/zsh/site-functions/_rsync-backup-ez"
## Bash completion
sudo install -vDm644 "completion/rsync-backup-ez_completion.sh" "/usr/share/bash-completion/completions/rsync-backup-ez"./scripts/uninstall.shRemove rsync-backup-ez
sudo rm -fv "/usr/local/bin/rsync-backup-ez"Remove rsync-backup-ez shell completion
## Zsh completion
sudo rm -fv "/usr/share/zsh/site-functions/_rsync-backup-ez"
## Bash completion
sudo rm -fv "/usr/share/bash-completion/completions/rsync-backup-ez"