Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Steffen Fog Sørensen on April 20, 2003, 07:27:10 PM

Title: rsync probs :-(
Post by: Steffen Fog Sørensen on April 20, 2003, 07:27:10 PM
Hi...

I'm trying to make rsync sync my "homedir" on two machines.

The problem is that  when I delete a file on machine-1, it's being deleted on machine-2, but not the other way around. When I delete af file on machine-2 then it's being recreated on next sync :-(

Here's the commandline I use:
rsync -auv --delete -e "ssh -1" root@remoteHostIP:/path/to/remote /path/to local/
Title: Re: rsync probs :-(
Post by: Charlie Brady on April 20, 2003, 08:28:05 PM
Steffen Fog Sørensen wrote:

> The problem is that  when I delete a file on machine-1, it's
> being deleted on machine-2, but not the other way around.
> When I delete af file on machine-2 then it's being recreated
> on next sync :-(

That's just the way that rsync works.

Charlie
Title: Re: rsync probs :-(
Post by: David Woolley on April 22, 2003, 04:27:47 PM
If you want to mirror folders in both directions, you could try Unison.  There  is a server-manager panel where you can automate when  the synchronisations occur.

hth
David
Title: Re: rsync probs :-(
Post by: Steffen Fog Sørensen on April 24, 2003, 02:12:47 PM
Unison looks fine for ibays, but how do I set it up for sync'en the /home -folder?

  /Steffen
Title: Re: rsync probs :-(
Post by: David Woolley on April 24, 2003, 07:52:14 PM
# unison -doc all |more

or

# unison -doc topics |more

The i-bay synchronisation timetable set up via the server-manager panel is held in

/var/spool/cron/root

hth

David