Thursday, November 19, 2009

permissions with rsync

Quoting from rsync man page: to give destination files (both old and new) the source permissions, use --perms. To give new files the destination-default permissions (while leaving existing files unchanged), make sure that the --perms option is off and use --chmod=ugo=rwX

 rsync -av --no-p --chmod=ugo=rwX -e "ssh -i /path/to/key" src dest 


Anonymous said...

Amiable fill someone in on and this fill someone in on helped me alot in my college assignement. Gratefulness you on your information.

Anonymous said...

Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.