Reputation: 406
I use rsync to backup a few thousands of files and pipe the output to a file. Given the number of files I'd like to see a list of only those transfers that had issues as well as a summary to show which completed.
So, using the -q
flag displays nicely by exception any error only.
Using --stats
shows a helpful summary at the end.
The problem is that I cannot combine them because it appears that -q
suppresses the stats output.
Any ideas welcome.
Upvotes: 17
Views: 27232
Reputation: 362
This did the trick for me :
rsync -azh --stats <source> <destination>
-a
/--archive
: archive mode; equals -rlptgoD (no -H,-A,-X)-z
/--compress
: compress file data during the transfer-h
/--human-readable
: output numbers in a human-readable format--stats
: give some file-transfer statsUpvotes: 22