Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created August 31, 2020 07:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hubgit/1a8f48feb8f892937a90efe153fa99d7 to your computer and use it in GitHub Desktop.
Save hubgit/1a8f48feb8f892937a90efe153fa99d7 to your computer and use it in GitHub Desktop.
rsync dry run with stats to summarise a backup of a remote server
rsync -avzh --progress --dry-run --stats -e ssh example:/ . --exclude=/backups --exclude=/boot --exclude=/build --exclude=/dev --exclude=/dump --exclude=/initrd --exclude=/latest --exclude=/lost+found --exclude=/media --exclude=/mnt --exclude=/nonexistent --exclude=/proc --exclude=/run --exclude=/selinux --exclude=/srv --exclude=/sys --exclude=/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment