Get a summary of directories recursed

reader at newsguy.com reader at newsguy.com
Sun Jun 3 01:32:08 GMT 2007


Summary:  How to get rsync to give me listing as it goes or a summary
of where it has been working.


Details:  Using rsync thru rsnapshot I find it difficult to tell when
reviewing logs, where things happed at.

Using one level of -v and --stats  I get to see the filenames of any
files synced but not a mention of directories covered.  Especially if
no files were affected.

Using more -vvv gets into lots of stuff I don't need and makes it
harder to review.

Below is a sample of an rsnapshot log.  Rsync is running like this:
  rsync  -va --delete  --numeric-ids --links  --delete-excluded --stats

On this run several targets were recursed but I can't tell what they
were.
=======================================
building file list ... done
./
blkid.tab
blkid.tab.old
csh.env
ld.so.cache
profile.env
mail/statistics

Number of files: 1251
Number of files transferred: 6
Total file size: 5143407 bytes
Total transferred file size: 46781 bytes
Literal data: 46781 bytes
Matched data: 0 bytes
File list size: 47218
File list generation time: 0.066 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 94301
Total bytes received: 158

sent 94301 bytes  received 158 bytes  188918.00 bytes/sec
total size is 5143407  speedup is 54.45
building file list ... done

Number of files: 813
Number of files transferred: 0
Total file size: 3435635 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 14814
File list generation time: 0.285 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 14830
Total bytes received: 20

sent 14830 bytes  received 20 bytes  29700.00 bytes/sec
total size is 3435635  speedup is 231.36
building file list ... done

Number of files: 11468
Number of files transferred: 0
Total file size: 461064941 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 297921
File list generation time: 3.608 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 297937
Total bytes received: 20

sent 297937 bytes  received 20 bytes  54174.00 bytes/sec
total size is 461064941  speedup is 1547.42
building file list ... done
./
.ecryptfs/
.ecryptfs/pki/
.ecryptfs/pki/passphrase/

Number of files: 113
Number of files transferred: 0
Total file size: 268679 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 2697
File list generation time: 0.042 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 2737
Total bytes received: 44

sent 2737 bytes  received 44 bytes  5562.00 bytes/sec
total size is 268679  speedup is 96.61





More information about the rsync mailing list