Re: Synchronizing the files on two machines
Christophe TROESTLER <firstname.lastname@example.org> writes:
> I would like to be able to synchronize the *certain* files on two
> machines that are *not* directly connected to each other.
> Well, you get the idea. If you know of an utility more or less
> fitting the description above, I am really interested! (I suppose I
> am not the only one with such a problem.)
Have a look at the debian packages mirrordir and rsync (I add the
descriptions below). rsync seems to be more popular (maybe because it
can update files over the net by only transferring a diff), but I
don't know much about the pros and cons. I used to use mirrordir
myself for transports of my files on a MO medium, and after my
experiences it works very well. I have played around with rsync a
little bit, it seems to be more sophisticated.
$ apt-cache show mirrordir
Maintainer: James R. Van Zandt <email@example.com>
Depends: libc6 (>= 2.1)
Description: duplicate a directory by making a minimal set of changes
mirrordir forces the mirror directory to be an exact replica of the
control directory tree in every possible detail suitable for purposes
of timed backup. Files whose modification times or sizes differ are
copied. File permissions, ownerships, modification times, access
times, and sticky bits are duplicated. Devices, pipes, and symbolic
and hard links are duplicated. Files or directories that exist in
the mirror directory that don't exist in the control directory are
deleted. It naturally descends into subdirectories to all their
depths. mirrordir tries to be as efficient as possible by making the
minimal set of changes necessary to mirror the directory.
$ apt-cache show rsync
Maintainer: Philip Hands <firstname.lastname@example.org>
Depends: libc6 (>= 2.1.2)
Description: fast remote file copy program (like rcp)
rsync is a program that allows files to be copied to and from remote
machines in much the same way as rcp. It has many more options than
rcp, and uses the rsync remote-update protocol to greatly speedup
file transfers when the destination file already exists.
The rsync remote-update protocol allows rsync to transfer just the
differences between two sets of files across the network link.