I've found that running a dry run with -navv will give a good readout
allowing me to see how my exclude include rules are working.
However if I add --exclude-delete to the same command line. The -vv
output is silenced.
[NOTE: command lines are shown wrapped but in use, were both on a
single line].
Without that flag:
# rsync -navv --stats --delete --include "*/" \
--exclude "alpha/*" --exclude "alphaev6/*" \
ftp.wtfo.com::rh-ftp/redhat-7.0/updates/ /mnt/hdc6/7.0up
WTFO Mirror FTP Site
Please report any problems immediately to <[EMAIL PROTECTED]>.
receiving file list ... done
including directory i386 because of pattern */
including directory i586 because of pattern */
including directory i686 because of pattern */
including directory images because of pattern */
including directory images/i386 because of pattern */
including directory noarch because of pattern */
including directory SRPMS because of pattern */
including directory alphaev6 because of pattern */
including directory alpha because of pattern */
excluding file alpha/.listing because of pattern alpha/*
excluding file alpha/apache-1.3.14-3.alpha.rpm because of
pattern alpha/*
deleting in .
Number of files: 157
Number of files transferred: 0
Total file size: 399817537 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 5419
Total bytes written: 133
Total bytes read: 5574
wrote 133 bytes read 5574 bytes 2282.80 bytes/sec
total size is 399817537 speedup is 70057.39
[209 root]/mnt/pack/rc/rsync.rc
Then with the flag:
# rsync -navv --stats --delete --delete-exclude \
--include "*/" --exclude "alpha/*" --exclude \
"alphaev6/*" ftp.wtfo.com::rh-ftp/redhat-7.0/updates/ /mnt/hdc6/7.0up
WTFO Mirror FTP Site
Please report any problems immediately to <[EMAIL PROTECTED]>.
receiving file list ... done
deleting in .
deleting alpha/apache-1.3.14-3.alpha.rpm
deleting alpha/.listing
Number of files: 157
Number of files transferred: 0
Total file size: 399817537 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 5419
Total bytes written: 142
Total bytes read: 5574
wrote 142 bytes read 5574 bytes 2286.40 bytes/sec
total size is 399817537 speedup is 69947.08
[209 root]/mnt/pack/rc/rsync.rc
#
What happened to the nifty diagnostic output?