Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2013 12:57:35 -0600
From:      Tim Daneliuk <tundra@tundraware.com>
To:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Syncing Two Dirs With Rsync
Message-ID:  <50EF0F1F.8080904@tundraware.com>

next in thread | raw e-mail | index | archive | help
I have used rsync for many years to make sure a destination
machine:directory is kept up-to-date with some source master
directory.

I now need to find a way to keep two different machine:dirs
in sync with each other.  But for any given file, I don't know
which of these is newer so I don't know "which way" to sync.

For example given:

machineA::/dir/foo      machineB:/dir/foo
machineA::/dir/bar      machineB:/dir/bar

Say the machineA has the newest foo, but machineB has the
newest bar.  At the end of syncing, I want both machines
to have the latest copies of everything.

I'm guessing there's a way to do this with rsync but I'm kind
of stumped.

Ideas?
-- 
-----------------------------------------------------------------------
Tim Daneliuk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50EF0F1F.8080904>