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