Created
August 31, 2020 07:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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