In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "what are the Rsync parameters", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the Rsync parameters" this article.
Rsync parameter option description
-v,-- verbose verbose mode output
-Q,-- quiet compact output mode
-c,-- checksum turns on the check switch to force the file transfer to be checked
-a,-- archive archiving mode, which means that files are transferred recursively and all file attributes are maintained, which is equal to-rlptgoD
-r,-- recursive processes subdirectories in recursive mode
-R,-- relative uses relative path information
Rsync foo/bar/foo.c remote:/tmp/
The Rsync parameter creates a foo.c file in the / tmp directory, and if you use the-R parameter:
Rsync-R foo/bar/foo.c remote:/tmp/
The Rsync parameter creates the file / tmp/foo/bar/foo.c, that is, maintains the full path information.
-b,-- backup creates a backup, that is, rename the old file to ~ filename when the same file name already exists for the destination. You can use the-- suffix option to specify different backup file prefixes.
-- backup-dir stores backup files (such as ~ filename) in a directory.
-suffix=SUFFIX defines the backup file prefix
-u,-- update only updates, that is, skips all files that already exist in DST and the file time is later than the file to be backed up. (do not overwrite updated files)
-l,-- links retains soft links
-L,-- copy-links handles soft links like regular files
-- copy-unsafe-links only copies links that point outside the SRC path directory tree
-- safe-links ignores links that point outside the SRC path directory tree
-H,-- hard-links retains hard links
-p,-- perms maintains file permissions
-o,-- owner keeps file owner information
-g,-- group keeps file group information
-D,-- devices keeps device file information
-t,-- times keeps file time information
-S,-- sparse performs special processing on sparse files to save DST space
-n,-- dry-run reality which files will be transferred
-W,-- whole-file copies files without incremental detection
-x,-- one-file-system do not cross file system boundaries
-B,-- the block size used by the block-size=SIZE check algorithm. The default is 700byte.
-e,-- rsh=COMMAND specifies the shell program that replaces rsh
-- rsync-path=PATH specifies the path information where the rsync command is located on the remote server
-C,-- cvs-exclude automatically ignores files using the same method as CVS to exclude files that you don't want to transfer
-- existing updates only those files that already exist in DST, not those newly created files
-- delete deletes files in DST that are not available in SRC
-- delete-excluded also deletes files on the receiver that are specified and excluded by this option
-- delete delete-after after the transfer is finished.
Delete ignore-errors even if there are IO errors.
-- max-delete=NUM deletes a maximum of NUM files
-- partial retains files that were not fully transferred for some reason, thus speeding up subsequent retransfers
-- force forces directory deletion, even if it is not empty
-- numeric-ids does not match numeric user and group ID to username and group name
-- timeout=TIME IP timeout in seconds
-I,-- ignore-times does not skip files of the same time and length
-- size-only when deciding whether to back up a file, only look at the file size without considering the file time
-- the timestamp window used by modify-window=NUM to determine whether the file is at the same time. The default is 0.
-T-- temp-dir=DIR creates temporary files in DIR
-- compare-dest=DIR also compares files in DIR to decide whether a backup is needed
-P equals-- partial
-- progress shows the backup process
-z,-- compress compresses the backed-up files during transfer
-- exclude=PATTERN specifies to exclude files that do not need to be transferred
-- include=PATTERN specifies the file mode that needs to be transferred without exclusion
-- exclude-from=FILE excludes files of the specified pattern in FILE
-- include-from=FILE does not exclude files specified by FILE for pattern matching
-- version print version information
-- address is bound to a specific address
-- config=FILE specifies other configuration files and does not use the default rsyncd.conf file
-- port=PORT specifies other rsync service ports
-- blocking-io uses blocking IO for remote shell
-stats gives the transfer status of some files
-- the actual transmission process of progress during transmission
-- log-format=FORMAT specifies the log file format
-- password-file=FILE gets the password from FILE
-- bwlimit=KBPS restricts the bandwidth of IBO, KBytes per second
-h,-- help displays help information
These are all the contents of the article "what are the Rsync parameters?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.