I'm new to using rsync, so far it is working well. But I want to know what files rsync decided to transfer. Using the -v option lists every sub-folder of my directory and lots of files. Is there any way to get rsync to report only on the changes it made to the destination directory? I'd like to know: what files /directories were copied across what files/ directories were deleted perhaps I need to post-process the output to get this info? I've tried the --stats and --progress switches but they don't seem to help. (I'm on Mac OS X 10.4.6, using the pre-installed rsync). Thanks for any help. --erikn
On Tue, 2006-04-04 at 13:47 -0700, Erik Neumann wrote:> what files /directories were copied across > what files/ directories were deletedThe -i, --itemize-changes option is just for you! It will give you output like this: .d..t.... ./ [mtime changed, probably because things were created] cd+++++++ new-dir/>f+++++++ new-dir/new-file >f.st.... updated-file.f...p... only-the-permissions-changed *deleting goner -- Matt McCutchen hashproduct@verizon.net http://hashproduct.metaesthetics.net/
On Tue, 4 Apr 2006, Erik Neumann <erikn@myphysicslab.com> wrote:> I'm new to using rsync, so far it is working well. But I want to > know what files rsync decided to transfer. Using the -v option lists > every sub-folder of my directory and lots of files.It sounds like you are not preserving the timestamps during the rsync. See the "copies every file" item in the FAQ: http://rsync.samba.org/FAQ.html and see if that solves your problem. You will need to do another "full" rsync to get the timestamps synced, but after that, your list of changed files should decrease dramatically. John