
May 4th, 2004, 01:17 AM
|
|
Registered User
|
|
Join Date: May 2004
Location: Pacific NW, USA
Posts: 26
Time spent in forums: 5 h 35 m 46 sec
Reputation Power: 0
|
|
I think you can use the unix command rsync
Quote:
rsync rsync
NAME
rsync - faster, flexible replacement for rcp
SYNOPSIS
rsync [OPTION]... SRC [SRC]... [USER@]HOST EST
rsync [OPTION]... [USER@]HOST:SRC DEST
rsync [OPTION]... SRC [SRC]... DEST
rsync [OPTION]... [USER@]HOST::SRC [DEST]
rsync [OPTION]... SRC [SRC]... [USER@]HOST: EST
rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
DESCRIPTION
rsync is a program that behaves in much the same way that rcp does,
but has many more options and uses the rsync remote-update protocol to
greatly speed up 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, using
an efficient checksum-search algorithm described in the technical
report that accompanies this package.
Some of the additional features of rsync are:
o support for copying links, devices, owners, groups and
permissions
o exclude and exclude-from options similar to GNU tar
o a CVS exclude mode for ignoring the same files that CVS would
ignore
o can use any transparent remote shell, including rsh or ssh
o does not require root privileges
o pipelining of file transfers to minimize latency costs
o support for anonymous or authenticated rsync servers (ideal for
mirroring)
GENERAL
There are eight different ways of using rsync. They are:
rsync
o for copying local files. This is invoked when neither source nor
destination path contains a : separator
o for copying from the local machine to a remote machine using a
remote shell program as the transport (such as rsh or ssh). This
is invoked when the destination path contains a single :
separator.
o for copying from a remote machine to the local machine using a
remote shell program. This is invoked when the source contains a
: separator.
o for copying from a remote rsync server to the local machine. This
is invoked when the source path contains a :: separator or a
rsync:// URL.
o for copying from the local machine to a remote rsync server. This
is invoked when the destination path contains a :: separator or a
rsync:// URL.
o for copying from a remote machine using a remote shell program as
the transport, using rsync server on the remote machine. This is
invoked when the source path contains a :: separator and the --
rsh=COMMAND (aka "-e COMMAND") option is also provided.
o for copying from the local machine to a remote machine using a
remote shell program as the transport, using rsync server on the
remote machine. This is invoked when the destination path
contains a :: separator and the --rsh=COMMMAND option is also
provided.
o for listing files on a remote machine. This is done the same way
as rsync transfers except that you leave off the local
destination. |
|