Rsync: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
=Overview=
=Overview=


rsync copies files to or from a remote host, or locally on the current host. It does not support copying files between two remote hosts. rsync may connect to the remote system either using a remote-shell programs, such as ssh or ssh, or directly to the rsync daemon running on the remote system, via TCP.
rsync is a differential, recursive file transfer utility. rsync copies files to or from a remote host, or locally on the current host. It does not support copying files between two remote hosts. rsync may connect to the remote system either using a remote-shell programs, such as ssh or ssh, or directly to the rsync daemon running on the remote system, via TCP. The remote-shell transport is used whenever there is a ":" after the host specification. If not configured otherwise with RSYNC_RSH environment variable or with -e command line option, rsync uses ssh by default. The rsync daemon transport is used when there is a "::" separator after host specification, or when "rsync://" is explicitly specified. If neither the source or destination path specify a remote host, the copy occurs locally. For remote transfers, rsync must be installed on both the source and destination machines.


=Organizatorium=


The remote-shell trans-
If a single source argument is specified without a destination, the files are listed in an output format similar to "ls -l".
      port is used whenever the source or destination path contains a single colon (:) separator after a host specification.  Contacting an rsync daemon directly happens when the source or destination path contains
      a double colon (::) separator after a host specification, OR when an rsync:// URL is specified (see also the "USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION" section for an exception to this latter
      rule).
 
      As a special case, if a single source arg is specified without a destination, the files are listed in an output format similar to "ls -l".
 
      As expected, if neither the source or destination path specify a remote host, the copy occurs locally (see also the --list-only option).
 
SETUP
      See the file README for installation instructions.
 
      Once installed, you can use rsync to any machine that you can access via a remote shell (as well as some that you can access using the rsync daemon-mode protocol).  For remote transfers, a modern  rsync  uses
      ssh for its communications, but it may have been configured to use a different remote shell by default, such as rsh or remsh.
 
      You can also specify any remote shell you like, either by using the -e command line option, or by setting the RSYNC_RSH environment variable.
 
      Note that rsync must be installed on both the source and destination machines.

Revision as of 19:13, 11 July 2017

Internal

Overview

rsync is a differential, recursive file transfer utility. rsync copies files to or from a remote host, or locally on the current host. It does not support copying files between two remote hosts. rsync may connect to the remote system either using a remote-shell programs, such as ssh or ssh, or directly to the rsync daemon running on the remote system, via TCP. The remote-shell transport is used whenever there is a ":" after the host specification. If not configured otherwise with RSYNC_RSH environment variable or with -e command line option, rsync uses ssh by default. The rsync daemon transport is used when there is a "::" separator after host specification, or when "rsync://" is explicitly specified. If neither the source or destination path specify a remote host, the copy occurs locally. For remote transfers, rsync must be installed on both the source and destination machines.

Organizatorium

If a single source argument is specified without a destination, the files are listed in an output format similar to "ls -l".