I am using rsync to synchronize folders between two Ubuntu Lucid Lynx systems.
rsync -az --delete -e "-i /home/ruser/.ssh/id_rsa_ruser -p 200" /usr/local/folder/ email@example.com:/usr/local/backup/folder/
Everything is going fine except I am getting following problem:
rsync: failed to set permissions on "/usr/local/backup/folder/README.txt": Operation not permitted (1)
On remote system (192.168.1.2)
ruser is member of
tnr group which is owner of
/usr/local/backup/folder/. The folder's permissions are as follows:
drwxrwxr-x 3 tom tnr 188416 2011-06-20 18:04 folder
Please help me to resolve the error or any method to bypass changing permission setting by rsync.
EDIT:- I had sorted this out by creating group tnr on source server and setting it as owner of source folder.