Ignoring parts of stat(2)

grarpamp grarpamp at gmail.com
Tue Jan 5 03:36:50 MST 2010


>  That option can be easily missed it's: --size-only

That seems like at least part of what would be useful :)
Certainly it covers the most common case of modtimes.

However, it doesn't seem to work :(

cp -p /etc/passwd a
cp -p /etc/passwd b

ls -liT a b
5 -rw-r--r--  1 user wheel  1706 Dec 25 03:08:02 2009 a
6 -rw-r--r--  1 user wheel  1706 Dec 25 03:08:02 2009 b

touch a

ls -liT a b
5 -rw-r--r--  1 user wheel  1706 Jan  5 05:24:17 2010 a
6 -rw-r--r--  1 user wheel  1706 Dec 25 03:08:02 2009 b

rsync -Haxi --delete --size-only ./a ./b
.f..t...... a

ls -liT a b
5 -rw-r--r--  1 user wheel  1706 Jan  5 05:24:17 2010 a
6 -rw-r--r--  1 user wheel  1706 Jan  5 05:24:17 2010 b


More information about the rsync mailing list