Koozali.org: home of the SME Server

rsync probs :-(

Steffen Fog Sørensen

rsync probs :-(
« 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/

Charlie Brady

Re: rsync probs :-(
« Reply #1 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

David Woolley

Re: rsync probs :-(
« Reply #2 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

Steffen Fog Sørensen

Re: rsync probs :-(
« Reply #3 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

David Woolley

Re: rsync probs :-(
« Reply #4 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