Currently, I'm trying to copy the modified files between 2 folders, and want the files that have differences to be copied over to the
The folder structure is the following:
.. |-- update+old | |-- new | `-- pt | `-- abc `-- web `-- abc
update+old/new- Where the new files should be (--compare-dest)
update+old/pt/abc- The original files (destination)
web/abc- The files I've changed (source)
I'm running the command:
rsync -av "$PWD/web/abc/" "$PWD/update+old/pt/abc/" --compare-dest="$PWD/update+old/new/"
It is simply skipping over
new and all the changes are being made to
update+old/pt/abc/ directly, leaving
update+old/new/ completelly empty.
-n) but it doesn't give any information. (It used to say that
update+old/new/ doesn't exist)
Am I doing something wrong or I misunderstood what is the use of the argument
In case it is needed, this is the output of
rsync --version, running on Debian 8.6:
root@webtest:/var/www/c1s.int# rsync --version rsync version 3.1.1 protocol version 31 Copyright (C) 1996-2014 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes, prealloc rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details.
Which was installed a few hours ago by running
apt-get install rsync.