I am using rsync to take a backup. This is my command line:
sudo rsync -avuh --delete --stats --log-file=$LOGFILE --exclude-from $EXCLUDE $SOURCE $DEST
This works for the most part. However, today, I came across a scenario where I just changed the attributes of a file to make it executable. Out of curiosity I ran rsync but it didn't show that file as being copied over to the destination.
The file contents are exactly the same and this is the stat output:
File: `Projects/simpleFlash.py' Size: 706 Blocks: 8 IO Block: 4096 regular file Device: 802h/2050d Inode: 56961 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 1000/ pi) Gid: ( 1000/ pi) Access: 2015-03-26 17:13:29.970428613 -0400 Modify: 2015-02-17 00:16:44.558033934 -0500 Change: 2015-05-19 13:53:28.401164123 -0400 Birth: -
The mtimes are the same but ctime is different. How do I make rsync look at the file attribute changes, for files with the same mtime?
specs: rsync 3.0.9 FS: ext4 linux kernel: 3.18.11+