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
-
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/
-
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
-
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
-
Unison looks fine for ibays, but how do I set it up for sync'en the /home -folder?
/Steffen
-
# 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