Matt McCutchen
Mon, 01 Feb 2010 13:41:01 -0800
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 / > /home/admin/configuration/ > > 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 \
/home/admin/configuration/ /
--
Matt
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html