My weekly backup script contains a bunch of bash statements like these:
rsync -va /source_path/ /destination_path/
Now, this works great but the -v (verbose) option doesn't behave exactly like I want. What I want is that it should display only the changed files which are being copied, and not each and every folder it scans.
For example, if
document2 folders are unchanged, but a file is changed in
document3, then the display will be as follows:
document1/ document2/ document3/ document3/foo.txt
If I omit the
-v option altogether, its totally silent and doesn't display anything at all. I want the output display but I'm only interested in the last line (foo.txt) which is the file being copied, not the dozens of folders which
rsync scans such as document1, document2, etc.
Is there any way to do it?