rsync file transfer (support for HTTP)

 
Pulled from the local to the remote data (AAAA)
rsync -aP -e 'ssh -p 121' --bwlimit=1000 aaa.tar.gz [email protected]:/data_bak/data_01
 
Pulling data from the cloud (bbbb) to the local / home
rsync -aP -e 'ssh -p 22' --bwlimit=10000 [email protected]:/data/x.tar.gz /home

  

 
 
 
 Specific parameters
--bwlimit = the KBPS limit I / O bandwidth, KBytes per second
-v, --verbose verbose mode output.
-q, --quiet streamline output mode.
-c, --checksum open check switch, forced verify file transfer.
-a, --archive filing mode, transfer files recursively expressed, and maintaining all file attributes, equal -rlptgoD.
-r, --recursive subdirectories recursively processing mode.
-R, --relative using relative path information.
-b, --backup create a backup, that is, for the purposes already exists with the same file name, the old file is renamed ~ filename. You can use --suffix option to specify a different backup file prefix.
--backup-dir backup file (e.g., ~ filename) stored in the directory.
-suffix = SUFFIX define the backup file prefix.
-u, --update only be updated, that is, skip all file already exists in DST, and the file is later than the time to back up, do not overwrite the file update.
-l, --links reservations soft link.
-L, --copy-links would like to be treated the same as regular file processing soft link.
--copy-unsafe-links pointing to other than only copy of the directory tree path SRC link.
--safe-links pointing to ignore the path of the directory tree outside SRC links.
-H, --hard-links preserves hard links.
-p, --perms to keep file permissions.
-o, --owner keep the file owner information.
-g, --group keep the file belongs to group information.
-D, --devices holding device file information.
-t, --times keep the file time information.
-S, --sparse sparse files to save space for special treatment of DST.
-n, --dry-run reality which files will be transferred.
- W , --whole- File copy documents, no incremental detection.
-x, --one-file-system do not cross file system boundaries.
-B, --block-size = SIZE test algorithm block size, the default is 700 bytes.
-e, --rsh = Command specify rsh, ssh way data synchronization.
--rsync-path = PATH specify where the information rsync command on the remote server.
-C, --cvs-exclude using the same method and the CVS file automatically ignore, to exclude undesirable file transfer.
--existing only update files that already exist in the DST, rather than backing up the newly created file.
--delete delete those DST SRC is not in the file.
--delete-excluded delete receiving end of the same files that are specified excluded this option.
--delete-after delete after the end of transmission.
--ignore-errors in a timely manner IO error also deleted.
--max-delete = NUM ​​NUM up to delete files.
--partial keep those files for some reason is not completely transferred, so accelerate the subsequent re-transmission.
--force Force remove directories, even if not empty.
--numeric-ids not user and group numbers id matches a user name and a group name.
= --timeout Time IP timeout in seconds.
-I, --ignore-times not to skip those files have the same length of time.
When --size-only when deciding whether to back up files, regardless of file size just look at the file time.
--modify-window = NUM ​​decide whether to file timestamps window the same time use, the default is 0.
-T --temp-dir = DIR create temporary files in the DIR.
--compare-dest = DIR DIR same comparison in the file to determine whether you need to back up.
-P equivalent to --partial.
--progress display the backup process.
the -z, - the compress for file backup compression processing is performed at the time of transmission.
--exclude = PATTERN exclude the specified file mode of transmission is not required.
--include = PATTERN do not exclude the need to specify the file transfer mode.
--exclude-from = FILE exclude file FILE specified pattern.
--include-from = FILE FILE, does not exclude that match the specified pattern.
--version print version information.
--address bound to a specific address.
--config = FILE specify a different configuration file, do not use the default rsyncd.conf file.
--port = PORT specify other rsync service port.
--blocking-io to use blocking IO on the remote shell.
-stats transmission status gives certain files.
--progress reality transmission process in the transmission.
--log-format = formAT specified log file format.
--password-file = FILE password obtained from the FILE.
-h, - Help displays help information.
 

Guess you like

Origin www.cnblogs.com/mhsxq/p/12029258.html