Hi everyone, I am a complete newbie to rsync. Last year I built and setup my own web server based on an old Intel PII box running at 333Mhz. There is plenty of RAM and HD space, but the site is now growing apace. A few weeks ago while upgrading my office equipment I set aside another box running an AMD Athlon at 1.1GHz. Still plenty of RAM and drive space. Both systems are setup us as servers running Fedora Core 3. I am happy with their performance but need to know how I can mirror the first server onto the second using rsync. I do not seem to be able to find any rsync folder or rsyncd.conf file on either, and have no idea where to start beyond reading the man pages. The service is a non-profit educational repository promoting history and local talent. Any help would be gratefully received. Kind regards, Gil
man rsync man rsyncd.conf I would hardly consider myself an expert, but there are at least two easy ways to set up to mirror from server A to server B. on server A, as root run rsync --daemon where /etc/rsyncd.conf is something like pid file = /etc/rsyncd.pid [backup] path = / read only = true uid = root gid = root auth users = foo secrets file = /etc/rsyncd.secrets on server B, run something like rsync -a foo@serverA::backup/www/ /home/backup/www/ on server B , as root run rsync --daemon where /etc/rsyncd.conf is something like pid file = /etc/rsyncd.pid [backup] path = /home/backup read only = false uid = root gid = root auth users = bar secrets file = /etc/rsyncd.secrets on server A run something like rsync -a /www/ bar@serverB::backup/www/ Life might get "interesting" if you are running both methods simultaneously. Even then, any glitches should be straightened up quickly. My own use is more on the lines of offsite backups and transfers, often over poor or undependable internet connections. You may find that rsync is a good way to use excess disk capacity.>----- ------- Original Message ------- ----- >From: ghar4399@bigpond.net.au >To: rsync@lists.samba.org >Sent: Sat, 01 Oct 2005 13:35:35 > >Hi everyone, > >I am a complete newbie to rsync. Last year I built >and setup my own web server >based on an old Intel PII box running at 333Mhz. >There is plenty of RAM and HD >space, but the site is now growing apace. > >A few weeks ago while upgrading my office equipment >I set aside another box >running an AMD Athlon at 1.1GHz. Still plenty of >RAM and drive space. > >Both systems are setup us as servers running Fedora >Core 3. I am happy with >their performance but need to know how I can mirror >the first server onto the >second using rsync. > >I do not seem to be able to find any rsync folder >or rsyncd.conf file >on either, and >have no idea where to start beyond reading the man >pages. > >The service is a non-profit educational repository >promoting history >and local talent. > >Any help would be gratefully received. > >Kind regards, > >Gil > >-- >To unsubscribe or change options: >https://lists.samba.org/mailman/listinfo/rsync >Before posting, read: >http://www.catb.org/~esr/faqs/smart-questions.html
On Saturday 01 Oct 2005 06:35, Gil Hardwick wrote:> Hi everyone, > > I am a complete newbie to rsync. Last year I built and setup my own web > server based on an old Intel PII box running at 333Mhz. There is plenty of > RAM and HD space, but the site is now growing apace. > > A few weeks ago while upgrading my office equipment I set aside another box > running an AMD Athlon at 1.1GHz. Still plenty of RAM and drive space. > > Both systems are setup us as servers running Fedora Core 3. I am happy with > their performance but need to know how I can mirror the first server onto > the second using rsync. > > I do not seem to be able to find any rsync folder or rsyncd.conf file > on either, and > have no idea where to start beyond reading the man pages. > > The service is a non-profit educational repository promoting history > and local talent. > > Any help would be gratefully received. > > Kind regards, > > GilAnother way is to set up ssh with keys and run rsync over that. see man ssh-keygen on how to generate keys. If you do this as root, place the public part (id_rsa.pub) on the receiving server (B) in /root/.ssh/authorized_keys, permissions 700 for /root/.ssh and 600 for authorized_keys. Test that it works with ssh root@1.2.3.4 Then you can mirror from anywhere on A to anywhere on B without passwords, without loss of security, through an encrypted tunnel, and no rsync config files. from A: rsync -a -v -e ssh /home/ root@1.2.3.4:/home rsync -a -v -e ssh /var/log/httpd/ root@1.2.3.4:/var/log/httpd and so on note the *single* colon. the -a gives you archive mode, which will retain all your uid/gid, permissions and datestamps. If your /etc/passwd file on B uses the same uid/gid as on A it will all fall into place. HTH -- ----------------- Bob Hutchinson Midwales dot com -----------------