rsync command Detail (see Official document Http://rsync.samba.org/ftp/rsync/rsync.html for more details)
[Email protected] epel]# rsync--Helprsync version3.0.6Protocol version -Copyright (C)1996- theby Andrew Tridgell, Wayne Davison, and others. Web site:http://rsync.samba.org/Capabilities: --bit files, --bit Inums, --bit timestamps, --bitLongINTs, Socketpairs, Hardlinks, symlinks, IPv6, Batchfiles, InPlace, append, ACLs, Xattrs, Iconv, Symtimesrsync C Omes with absolutely NO WARRANTY. this is Freesoftware, and youare Welcome to redistribute it under certain conditions. See the Gnugeneral public Licence forDetails.rsync is afileTransfer program capable of efficient remote Updatevia a fast differencing algorithm. Usage:rsync [OPTION] ... src [src] ... DEST or rsync [OPTION] ... src [src] ... [[email protected]] Host:dest or rsync [OPTION] ... src [src] ... [[email protected]] HOST::D est or rsync [OPTION] ... SRC [src] ... rsync://[email protected]]host[:P ort]/destor rsync [OPTION] ... [[email protected]] HOST:SRC [DEST] or rsync [OPTION] ... [[email protected]] HOST::SRC [DEST] or rsync [OPTION] ... rsync://[ Email protected]]host[:P ort]/src [DEST]The':'Usages connect via remote shell, while '::'&'rsync://'usages ConnectTo an rsync daemon, and require SRC or DEST to start with a module name. Options-V,--Verbose increase verbosity-Q,--quiet suppress non-error Messages--NO-MOTD Suppress daemon-mode MOTD (see Manpage caveat)-C,--checksum Skip based on checksum, not mod- Time&size-A,--archive archive mode; Equals-rlptgod (no-h,-a,-X)--no-option turn off an implied OPTION (e.g.--no-D)-R,--recursive recurse into directories-R,--relative use relative path names--no-implied-dirs Don't send implied dirs with--relative-B,--backup MakeBackups (see--suffix &--backup-dir) --backup-dir=dir MakeBackups into hierarchy basedinchDIR--suffix=suffix set backup suffix (default ~W/O--backup-dir) -U,--Update Skip files that is newer on the receiver--inplace Update Destination Filesinch-Place (see Mans PAGE)--append append data onto shorter files--append-verify like--append, but with old datainch fileChecksum-D,--dirs Transfer directories without recursing-L,--links copy Symlinks as symlinks-L,--copy-links transform symlink into referentfile/dir--copy-unsafe-links only"unsafe"Symlinks is transformed--safe-links ignore symlinks that point outside the source tree-K,--copy-dirlinks transform symlink to adirInto referentdir-K,--keep-dirlinks treat symlinkeddirOn receiver asdir-H,--hard-Links Preserve Hard links-P,--perms Preserve Permissions-E,--executability preserve thefile's executability--chmod=chmod affectfileand/or directory Permissions-A,--acls preserve ACLs (implies-perms)-X,--xattrs Preserve Extended attributes-O,--owner Preserve owner (super-user only)-G,--Group Preserve Group--devices Preserve device files (super-user only)--copy-devices copy device contents as regularfile--Specials Preserve Special files-d Same as--devices--Specials-T,--Times Preserve modification times-O,--omit-dir-times omit directories from-- Times--super Receiver Attempts super-User Activities--fake-super store/recover privileged attrs using xattrs-S,--sparse handle sparse files efficiently-N,--dry-run perform a trial run with no changes made-W,--whole-fileCopy files whole (without delta-Xfer algorithm)-X,--one-file-system Don'T cross filesystem boundaries-B,--block-size=size force a fixed checksum block-size-E,--rsh=COMMAND Specify the remote shell to use--rsync-path=Program Specify the Rsync -to-run on the remote--existing skip creating new files on receiver--ignore-existing skip updating files that already exist on receiver--remove-source-files Sender removes synchronized files (non-dirs)--del an alias for--delete-during--Delete delete extraneous files from destination dirs--delete-before receiver deletes before transfer, not during--delete-during receiver deletes during transfer (default)--delete-delayFinddeletions during, delete after--delete-After receiver deletes through transfer, not during--delete-excluded also delete excluded files from destination dirs--ignore-errors Delete EvenifThere is i/O Errors--force Force deletion of directories evenifNot empty--max-delete=num Don'T Delete more than NUM files--max-size=size Don'T transfer any file larger than SIZE--min-size=size Don't transfer any file smaller than SIZE--partial keep partially transferred files--partial-dir=dir put a partially transferredfileInto DIR--delay-updates put all updated files to place at transfer'S End-M,--prune-empty-dirs prune empty directory chains from thefile-List--numeric-ids Don't map uid/gid values by User/group name--timeout=seconds set I/O timeoutinchseconds--contimeout=seconds Set Daemon Connection timeoutinchseconds-I.,--ignore-times Don't skip files that match in size and Mod-time--size-only Skip files that matchinchsize--modify-window=num Compare mod-Times with reduced accuracy-T,--temp-dir=dir Create temporary filesinchDirectory DIR-Y,--fuzzyFindSimilarfile forBasisifNo destfile--compare-dest=dir also compare destination files relative to DIR--copy-dest=DIR ... and include copies of unchanged files--link-dest=dir Hardlink to filesinchDIR when unchanged-Z,--compress compressfiledata during the transfer--compress-level=NUM explicitly set compression level--skip-compress=list Skip compressing files with a suffixinchLIST-C,--cvs-exclude auto-ignore files The same -the-does-F,--filter=rule add afile-filtering RULE-F Same as--filter='Dir-merge/.rsync-filter'repeated:--filter='-. Rsync-filter'--exclude=pattern exclude files matching pattern--exclude-from=file read exclude patterns from FILE--include=pattern Don't exclude files matching PATTERN--include-from=file read include patterns from FILE--files-from=file Read List of source-filenames from FILE-0,--from0 all *-from/filter files is delimited by 0s-S,--protect-args no space-splitting; Only wildcard special-chars--address=address bind Address foroutgoing socket to daemon--port=port SpecifyDouble-Colon Alternate Port number--sockopts=options Specify custom TCP options--blocking-io use blocking I/O forThe remote shell--stats give somefile-Transfer Stats-8, --8-bit-output Leave high-bit chars unescapedinchOutput-h,--human-readable output numbersinchA human-readable format--Progress Show progress during transfer-p Same as--partial--Progress-I,--itemize-changes output a change-summary forAll Updates--out-format=format output updates using the specified FORMAT--log-file=file Log What we're doing to the specified FILE--log-file-format=FMT Log updates using the specified FMT--password-file=file Read daemon-access password from FILE--list-Only list the files instead of copying them--bwlimit=kbps Limit i/O Bandwidth; Kbytes per second--Write-batch=fileWritea batched update to FILE--only-Write-batch=file Like--Write-batch butW/o Updating Destination--read-batch=file read a batched update from FILE--protocol=NUM Force a older protocol version to be used--iconv=Convert_spec Request CharSet conversion of filenames-4, --IPv4 prefer IPv4-6, --IPv6 prefer IPv6--version print version number (-h)--help Show this Help (-h works with no other options) use"rsync--daemon--help"To see the Daemon-mode command-Line options. please see the rsync (1) and rsyncd.conf (5)MansPages forFull documentation. See http://rsync.samba.org/for updates, bug reports, and Answers
Usage:
SRC Source Address, dest Destination address
This command can be run on the server or on the client side, so his login can be src or dest. Anyway, the front is the source behind the target.
Detailed parameters:
-
The rsync command is detailed