[ale] Copy server

Jerald Sheets questy at gmail.com
Fri Feb 18 10:05:32 EST 2011

Hash: SHA1

I'm using one like so:

/usr/bin/rsync -avpz -e ssh --delete /var/www/html/inside.foo.com fooweb101:/var/www/html/

The only thing that sort of weirded me out is that when I first set this up, for some reason in my head this was counterintuitive.  I would've thought that 

/var/www/html/inside.foo.com fooweb101:/var/www/html/inside.foo.com

would've been more correct.  I guess my thinking was "I'm mirroring inside.foo.com, so it should be specified on both ends" sort of logic.  

Apparently not.  :)

Once I got that ironed out in my head, I was fine.

- --j

On Feb 18, 2011, at 9:46 AM, Chris Fowler wrote:

> 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
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo

Linux User #183003
Ubuntu User #32648
Public GPG Key:  http://questy.org/js.asc

Version: 3.1
GIT/MU d-@ s++(++)>+++:> a+ C++++(+++)$>++ UBLAVHSC++(on)$>++++ P++(+++)$>++++ L++(++++)$>+++ !E---(---)>--- W+(++)$>+++ N(+)$>++ !o !K-- w(--)>--- O()@> M++(++)$>++ V()>- PS+++()@>-- PE(++)@>+ Y+(+)@>+ PGP++(++)$>+++ t+(++)@>+++ 5(+)@>+ X+(++)@>+++ R+(+)@>++ tv-(+)$>++ b+++(++)$>++ DI++++(++)>+++ D++(++)@>++ G++(++)@>++ e++(++)$>++ h(-)$>- r+++(+++)@>+++ y+(+++)>++++@ 
- ------END GEEK CODE BLOCK------

Version: GnuPG v1.4.11 (Darwin)


More information about the Ale mailing list