[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Mirroring drives with Rsync



On Tue, 2003-01-07 at 14:02, Rob Keeling wrote:
> Sounds interesting, I am looking for a cron job type solution so phraseless
> ssg keys (what ever that means?!)
> sounds good, I need to minimise the network traffic between machines, but
> mounting the samba shares of each
> server on the other would not be a problem.
> 
> What do you think would be best?
> 
> Rob Keeling
> 


I use something like this


/usr/bin/rsync  -v --stats --delete --numeric-ids -ogxrlptz \
 -e /usr/bin/ssh user [at] server.my.org:/remote/directory/. /local/directory


# -x one file system
# -r recurse
# -l symlinks as symlinks
# -p preserve permissions
# -t preserve time stamps
# -z compress
# --delete  delete files that don“t exist on the sending side
# -o, --owner       preserve owner (root only)
# -g, --group       preserve group
# --numeric-ids


You will need to set up ssh so that you can ssh to server.my.org as user
without it asking for a passphrase.

 Dave.






> ----- Original Message -----
> From: "Alex Hudson" <nospam [at] alexhudson.com>
> To: <nospam [at] list.sheflug.org.uk>
> Sent: Tuesday, January 07, 2003 1:20 PM
> Subject: Re: [Sheflug] Mirroring drives with Rsync
> 
> 
> > On Tue, Jan 07, 2003 at 01:03:23PM -0000, Rob Keeling wrote:
> > > What`s the easiest way of setting up rsync to mirror the contents
> > > of a particular folder structure across two machines?
> >
> > I would personally mount the remote folders locally, and then sync
> > the files on that machine. rsync doesn't have to be used across a
> > network :o)
> >
> > You can also setup phraseless ssh keys, to allow one machine to login
> > to the others without requiring manual intervention to supply a
> > password.
> >
> > Which route would you want to go?
> >
> > Cheers,
> >
> > Alex.







> >
> > ___________________________________________________________________
> >
> > Sheffield Linux User's Group -
> > http://www.sheflug.co.uk/mailfaq.html
> >
> >   GNU the choice of a complete generation.
> >
> 
> ___________________________________________________________________
> 
> Sheffield Linux User's Group -
> http://www.sheflug.co.uk/mailfaq.html
> 
>   GNU the choice of a complete generation.
-- 
Dr. David Holden. (Systems Developer)
check-out : crystallography journals online <http://journals.iucr.org>

Thanks in advance:-
Please avoid sending me Word or PowerPoint attachments.
See: <http://www.fsf.org/philosophy/no-word-attachments.html>

Personal Links:-
Recommended reading : http://www.oreilly.com/catalog/dbnationtp/
UK Privacy (R.I.P)  : http://www.stand.org.uk/commentary.php3
Public GPG key available on request.

-- 99% of politicians give the rest a bad name --
------------------------------------------------- 

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.