Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm using rsync to backup all of the websites we have. It's logging in with ssh and using ssh keys so it all goes smoothly.
I like to change the permissions, ownership and group this command is setting on the downloaded files. These permissions, ownerships and groups are completly different from the one we use on the server. Is it possible to make this happen within the rsync command? Or should i run a shell script afterwards to change this?
This is the adjusted (for security reason) command I'm using:
If these are backups, I'd say you may want to preserve the unique ID's and Permissions on these files so if or when you need to restore, they'll be intact as their original owner and permission without any interaction.
If you do insist on changing the permissions, might want to somehow write a script that knows how to revert back before a restore..