[ale] Copy server

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


-----BEGIN PGP SIGNED MESSAGE-----
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

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

- -----BEGIN GEEK CODE BLOCK-----
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------



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNXoq9AAoJEAek0rkZiSvcxH0H/3jrUQXjANf0qZtlYqE+cbCb
EJVqCkukkk5HPpjxXTvZvhoiGcNTV3ca5QRkzChfDSqhjkajkuBhLuiqXVclE48Z
kSMi5Z0yrnIubLkXFW+EA8qsLNe5jDTF7pqH9MOENJrFBUvwi/XwcdfnQyuxgJHE
/OgONTrfWM7c3pqEtTWJ4DJZW1qp6r87ufX9kZGhkKaDZklw18YTMTIJdU3RmF1z
lT9Yf6fS0aERn4gpzZekeXxBbbm0Zzcog89Fio1JStumDIeJF26tvchYlgUeUxke
HkNyRqGqXjoS72z65vdYem3e04AYhSMkkpPtOmH4bGvapWYYguxozqwiPqKF+RM=
=IXug
-----END PGP SIGNATURE-----



More information about the Ale mailing list