Rsync Batch Directory Synchronisation to Remote Server
Posted on 2006-11-01
I have two server's...
1 called will01, the other will02.
Will01 is our primary linux server, which serves our internal intranet, mysql databases, file services and mail service's.
The key directory's I need to sychronise are /home and /vol1.
These need to be schronised to to will02 /home and /vol1.
No files must get deleted from will01, but they should be deleted from will02 if they don't exist on will01.
I think this can be done using rsync, what command would I use? Also as this will run in a cron job, I cannot have rsync asking for a password. This is a farely urgent deadline required for this.