Trying to mirror two web servers. I can rsync but then I thought about it some more.
Here are the issues.
- 6 sites on production server. each folder is own by different user
- dont want to generate public keys for root (i think if i rsync as root the permissions will transfer over correctly)
- i used one account (testuser) and rsynced the directories over, but unfortunately the folders on the backup server inherits "testuser" as the owner of the files.
So what do I need to do to transfer the permissions over correctly w/o using the root user?
This way I dont have to create a cronjob for 6 users.
Command I used:
rsync -avz <source> <destination>
Here are the issues.
- 6 sites on production server. each folder is own by different user
- dont want to generate public keys for root (i think if i rsync as root the permissions will transfer over correctly)
- i used one account (testuser) and rsynced the directories over, but unfortunately the folders on the backup server inherits "testuser" as the owner of the files.
So what do I need to do to transfer the permissions over correctly w/o using the root user?
This way I dont have to create a cronjob for 6 users.
Command I used:
rsync -avz <source> <destination>