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

Re: [Sheflug] File Sync



On Saturday 01 March 2003 16:20, Mr. Adam ALLEN wrote:
> On Sat, 2003-03-01 at 16:07, Richard Ibbotson wrote:
> > Rsync...  best tool invented for network file exchange.  You can even
> > use it with SSH over the internet between work and home.
> >
> > http://samba.anu.edu.au/rsync/
>
> I use rsync for backing up to a second box 2-3 times a day (paranoid
> about loosing work), although I would loose it in the event of a fire.
> I have rsync running on both the laptop and desktop (and since it's only
> me with access to the machines - I'm not overly concerned about running
> rsync as root)
>
> /etc/rsyncd.conf
> [home]
>   comment=home area
>   path = /home
>   read only = no
>   list = yes
>   uid = root
>   gid = root
>   hosts allow = 172.20.6.192/27
>
>
> When leaving home with laptop.. (this I enter on the desktop- the laptop
> is 172.20.6.197)
> rsync  -v -a -r -l -p -o -g -t --delete /home/ 172.20.6.197::home
>
> Then when coming back with laptop. (again, I enter this on the desktop)
> rsync  -v -a -r -l -p -o -g -t --delete 172.20.6.197::home /home/
>
>
> I'd recommend you leaving the --delete option off, since it, well
> deletes files which rsync detects are not required. It's useful when you
> know that rsync is working as you need it - but until that time don't
> use it
>
>
> man rsync explains what I've got above; but sometimes it's useful to
> have an example to glance at when reading the man pages.

Many thanks. I have looked at rsync in managing linux, but thought I would see 
if there was anything idiot friendly out there. Looks like the command line 
wins again....
-- 
Alec Melling <melling [at] clara.co.uk>
___________________________________________________________________

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

  GNU the choice of a complete generation.