[ale] Copy server
Chris Fowler
cfowler at outpostsentinel.com
Fri Feb 18 09:46:58 EST 2011
I'm using rsync for backups but I want to sync a server with another and
I want to make sure I get the CLI options correct because I have only
once chance to get it right!
I have two servers that are identical. One is a master and the other a
slave (MySQL terms).
The software is in /opt/SAM on both systems. Up until now they were
identical but I've made changes to files on the master so I want to do a
copy.
I want to use rsync to sync master:/opt/SAM to slave:/opt/SAM. On the
slave I want to delete any files that do not exist.
rsync -avz --delete -e ssh root at master:/opt/SAM /opt/SAM
I want to exlcude /opt/SAM/mysql
I don't want to copy the master's data because that would mean I would
have to reinitialize the slave.
Chris
More information about the Ale
mailing list