I'm not an expert, but I do use rsync. I've found rsync over ssh to be great. Especially for backup over the net purposes. here are a few comments:
use of the "-p" flag is redundant. the "-a" (archive) flag implies automatically the combination of "-rlptgoD" When you say that you connect to both machines via ssh, I don't quite follow you. From my experience its easier to get on one of the machines (either source or destination) and initiate the rsync. For example, I think you might have better luck by jumping on the source machine and doing the following: rsync -avu --proress --partial -e ssh /var/ remotemachine:/var/ the root pw will be necessary. If you want to run such a command from cron you will need to add the necessary ssh authorized_keys to the remote host so that root can ssh directly from the local box to the remote box w/o a prompt. -matt On Wed, 26 Feb 2003, Greg Corlett wrote: > Everyone: > > Need advice from some rsync experts. Here is the scenario. > > I am trying to migrate data from an existing server to a new server using > rsync. > > Old server: > > AMD Duron 800Mhz; 768MB RAM; 60 GB IDE hard drive; Intel 1000MT nic. > > New server: > > Intel P3 1Ghz; 1 GB RAM; two 40 GB IDE hard drives; Intel 1000MT nic. > > Both these servers will be running Red Hat 7.3 and are used as Apache web > servers > with PHP and MySql. I have done a basic setup on the new server in setting > up the partitions. > What I what to do is copy the data from the old servers partitions to the > new servers partitons > using rsync over SSH as root. Here is the syntax that I am using with rsync: > > rsync -avup --partial --progress oldserver:/var newserver:/var > > This is after connecting to both servers as root and over SSH. I have found > that if I, for instance > try to copy /var using the above syntax it does not work. If I try putting > an additional slash after the > var (ex. /var/ ) rsync tries to create the dir on the newserver but fails, > I really don't want to do this > anyways since the partition is already created and I just want to copy the > particular partition from the > oldserver with all permissions, etc. from the oldserver to the newserver. > > I was going to try and copy all the data on all partitions on the old > server to the new server and then simply > stick the RH 7.3 cdrom in the newserver and do an upgrade for the os to > work with the new hardware on the > new server. Is there something wrong with way I am using rysnc and its > options? or am I way off here trying > to do it this way? > > Any help would be greatly appreciated. > > Thanks, > > Greg Corlett > > > Greg J. Corlett > CSR > Brigham Young University > Department of Statistics > TMCB 215 > Provo, UT 84602 > Phone: (801) 422-8346 > FAX: (801) 422-0635 > Email: [EMAIL PROTECTED] > > > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > ___________________________________________________________________ > List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list > ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
