Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In order to use "rsync" to synchronize data between a development server and a production server, I have to set PermitRootLogin on on the production server, then I can run "rsync -avhe ssh --delete --progress local/folder root@192.168.10.120:/home/www/folder/", to keep all files with ownership/permissions unchanged.

However, because of the security policy, I have to set "PermitRootLogin no" on the production server.

What would be a good way of dealing with this problem?

Thanks

share|improve this question
    
Thanks for both answers! for now I end up pulling them from the development server. –  user57409 Oct 18 '10 at 4:54

2 Answers 2

trigger your mirror on the production server to the development server.

share|improve this answer
    
could you elaborate a bit more about this? thanks –  user57409 Oct 17 '10 at 23:33
1  
I think what he's saying is run rsync on the production server and have it pull from the development server, instead of the other way around. –  DerfK Oct 17 '10 at 23:49
    
Yes - "PermitRootLogin no" everywhere and "rsync -avhe ssh --delete --progress someuser@devbox:/local/folder /home/www/folder/" as root on the production. (:s/to/from/g <karmawhore) –  symcbean Oct 18 '10 at 12:36

create dedicated user for rsync and make it member of root group (GID 0 )

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.