Reverse function how to
matt at mattmccutchen.net
Mon Feb 1 14:40:28 MST 2010
On Mon, 2010-02-01 at 15:03 +0100, Leslie Jensen wrote:
> I'm using a script that does this:
> /usr/local/bin/rsync -tpv --files-from=/home/admin/bin/list_of_files /
> I can't get the permissions on the files to stick, when the files are
> written they get root as owner. I run the script as root.
Ownership is different from permissions. If you want the ownership to
"stick", pass -o and/or -g.
> Secondly I would like to reverse the sync so that I can move the
> directory configuration to another machine and make rsync copy the files
> from there and owerwrite the original files on the system.
Switch the arguments?
/usr/local/bin/rsync -tpv --files-from=/home/admin/bin/list_of_files \
More information about the rsync