日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Rsync 3.1.0 发布,文件同步工具

發(fā)布時(shí)間:2024/8/23 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Rsync 3.1.0 发布,文件同步工具 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

文件同步工具Rsync 3.1.0發(fā)布。2013-09-29 上一個(gè)版本還是2011-09-23的3.0.9 過了2年多。Rsync基本是Linux上文件同步的標(biāo)準(zhǔn)了,也可以和inotify配合做實(shí)時(shí)同步。此版本有很多性能的增強(qiáng)(如重寫的I/O層代碼), 小功能改進(jìn)增強(qiáng)以及Bug修正,建議升級(jí)。

完全改進(jìn):

NEWS for rsync 3.1.0 (28 Sep 2013) Protocol: 31 (changed) Changes since 3.0.9:OUTPUT CHANGES:- Output numbers in 3-digit groups by default (e.g. 1,234,567). See the--human-readable option for a way to turn it off. See also the daemon's"log format" parameter and related command-line options (including--out-format) for a modifier that can be used to request digit-groupingor human-readable output in log escapes. (Note that log output isunchanged by default.)- The --list-only option is now affected by the --human-readable setting.It will display digit groupings by default, and unit suffixes if higherlevels of readability are requested. Also, the column width for the sizeoutput has increased from 11 to 14 characters when human readability isenabled. Use --no-h to get the old-style output and column size.- The output of the --progress option has changed: the string "xfer" wasshortened to "xfr", and the string "to-check" was shortened to "to-chk",both designed to make room for the (by default) wider display of filesize numbers without making the total line-length longer. Also, whenincremental recursion is enabled, the string "ir-chk" will be usedinstead of "to-chk" up until the incremental-recursion scan is done,letting you know that the value to check and the total value will stillbe increasing as new files are found.- Enhanced the --stats output: 1) to mention how many files were created(protocol >= 28), 2) to mention how many files were deleted (a new linefor protocol 31, but only output when --delete is in effect), and 3) tofollow the file-count, created-count, and deleted-count with a subcountlist that shows the counts by type. The wording of the transferred counthas also changed so that it is clearer that it is only a count of regularfiles.BUG FIXES:- Fixed a bug in the iconv code when EINVAL or EILSEQ is returned with afull output buffer.- Fixed some rare bugs in --iconv processing that might cause a multibytecharacter to get translated incorrectly.- Fixed a bogus "vanished file" error if some files were specified with"./" prefixes and others were not.- Fixed a bug in --sparse where an extra gap could get inserted after apartial write.- Changed the way --progress overwrites its prior output in order to makeit nearly impossible for the progress to get overwritten by an error.- Improved the propagation of abnormal-exit error messages. This shouldhelp the client side to receive errors from the server when it is exitingabnormally, and should also avoid dying with an "connection unexpectedlyclosed" exit when the closed connection is really expected.- The sender now checks each file it plans to remove to ensure that ithasn't changed from the first stat's info. This helps to avoid losingfile data when the user is not using the option in a safe manner.- Fixed a data-duplication bug in the compress option that made compressionless efficient. This improves protocol 31 onward, while behaving in acompatible (buggy) manner with older rsync protocols.- When creating a temp-file, rsync is now a bit smarter about it dot-charchoices, which can fix a problem on OS X with names that start with "..".- Rsync now sets a cleanup flag for --inplace and --append transfers thatwill flush the write buffer if the transfer aborts. This ensures thatmore received data gets written out to the disk on an aborted transfer(which is quite helpful on a slow, flaky connection).- The reads that map_ptr() now does are aligned on 1K boundaries. Thishelps some filesystems and/or files that don't like unaligned reads.- Fix an issue in the msleep() function if time jumps backwards.- Fix daemon-server module-name splitting bug where an arg would get spliteven if --protect-args was used.ENHANCEMENTS:- Added the --remote-option=OPT (-M OPT) command-line option that is usefulfor things like sending a remote --log-file=FILE or --fake-super option.- Added the --info=FLAGS and --debug=FLAGS options to allow finer-grainedcontrol over what is output. Added an extra type of --progress outputusing --info=progress2.- The --msgs2stderr option can help with debugging rsync by allowing thedebug messages to get output to stderr rather than travel via the socketprotocol.- Added the --delete-missing-args and --ignore-missing-args options toeither delete or ignore user-specified files on the receiver that aremissing on the sender (normally the absence of user-specified filesgenerates an error).- Added a "T" (terabyte) category to the --human-readable size suffixes.- Added the --usermap/--groupmap/--chown options for manipulating fileownership during the copy.- Added the "%C" escape to the log-output handling, which will output theMD5 checksum of any transferred file, or all files if --checksum wasspecified (when protocol 30 or above is in effect).- Added the "reverse lookup" parameter to the rsync daemon config file toallow reverse-DNS lookups to be disabled.- Added a forward-DNS lookup for the daemon's hosts allow/deny config. Canbe disabled via "forward lookup" parameter (defaults to enabled).- Added a way for more than one group to be specified in the daemon'sconfig file, including a way to specify that you want all of thespecified user's groups without having to name them. Also changed thedaemon to complain about an inability to set explicitly-specified uid/gidvalues, even when not run by a super-user.- The daemon now tries to send the user the error messages from thepre-xfer exec script when it fails.- Improved the use of alt-dest options into an existing hierarchy of files:If a match is found in an alt-dir, it takes precedence over an existingfile. (We'll need to wait for a future version before attribute-changeson otherwise unchanged files are safe when using an existing hierarchy.)- Added per-user authorization options and group-authorization support tothe daemon's "auth users" parameter.- Added a way to reference environment variables in a daemon's config file(using %VAR% references).- When replacing a non-dir with a symlink/hard-link/device/special-file,the update should now be done in an atomic manner.- Avoid re-sending xattr info for hard-linked files w/the same xattrs(protocol 31).- The backup code was improved to use better logic maintaining the backupdirectory hierarchy. Also, when a file is being backed up, rsync triesto hard-link it into place so that the upcoming replacement of thedestination file will be atomic (for the normal, non-inplace logic).- Added the ability to synchronize nano-second modified times.- Added a few more default suffixes for the "dont compress" settings.- Added the checking of the RSYNC_PROTECT_ARGS environment variable to allowthe default for the --protect-args command-line option to be overridden.- Added the --preallocate command-line option.- Allow --password-file=- to read the password from stdin (filename "-").- Rsync now comes packaged with an rsync-ssl helper script that can beused to contact a remote rsync daemon using a piped-stunnel command.It also includes an stunnel config file to run the server side tosupport ssl daemon connections. See the packaging/lsb/rsync.specfile for one way to package the resulting files. (Suggestions forhow to make this even easier to install & use are welcomed.)- Improved the speed of some --inplace updates when there are lots ofidentical checksum blocks that end up being unusable.- Added the --outbuf=N|L|B option for choosing the output buffering.- Repeating the --fuzzy option now causes the code to look for fuzzymatches inside alt-dest directories too.- The --chmod option now supports numeric modes, e.g. --chmod=644,D755- Added some Solaris xattr code.- Made an rsync daemon (the listening process) exit with a 0 status whenit was signaled to die. This helps launchd.- Improved the RSYNC_* environment variables for the pre-xfer exec script:when a daemon is sent multiple request args, they are now joined into asingle return value (separated by spaces) so that the RSYNC_REQUESTenvironment variable is accurate for any "pre-xfer exec". The values inRSYNC_ARG# vars are no longer truncated at the "." arg (prior to therequest dirs/files), so that all the requested values are also listed(separately) in RSYNC_ARG# variables.EXTRAS:- Added an "instant-rsyncd" script to the support directory, which makesit easy to configure a simple rsync daemon in the current directory.- Added the "mapfrom" and "mapto" scripts to the support directory, whichmakes it easier to do user/group mapping in a local transfer based onpasswd/group files from another machine.- There's a new, improved version of the lsh script in the support dir:it's written in perl and supports -u without resorting to using sudo(when run as root). The old shell version is now named lsh.sh.- There is a helper script named rsync-slash-strip in the support directoryfor anyone that wants to change the way rsync handles args with trailingslashes. (e.g. arg/ would get stripped to arg while arg/. would turn intoarg/).INTERNAL:- The I/O code was rewritten to be simpler and do bigger buffered readsover the socket. The I/O between the receiver and the generator waschanged to be standard multiplexed-I/O (like that over the socket).- The sender tries to use any dead time while the generator is looking forfiles to transfer in order to do sender-side directory scanning in a moreparallel manner.- A daemon can now inform a client about a daemon-configured timeout valueso that the client can assist in the keep-alive activity (protocol 31).- The filter code received some refactoring to make it more extendible, toread better, and do better sanity checking.- Really big numbers are now output using our own big-num routine ratherthan casting them to a double and using a %.0f conversion.- The pool_alloc library has received some minor improvements in alignmenthandling.- Added init_stat_x() function to avoid duplication of acl/xattr init code.- The included zlib was upgraded from 1.2.3 to 1.2.8.- Rsync can now be compiled to use an unmodified zlib library instead ofthe tweaked one that is included with rsync. This will eventuallybecome the default, at which point we'll start the countdown to removingthe included zlib. Until then, feel free to configure using:./configure --with-included-zlib=noDEVELOPER RELATED:- Added more conditional debug output.- Fixed some build issues for android and minix.

下載:http://rsync.samba.org/ftp/rsync/rsync-3.1.0.tar.gz

轉(zhuǎn)載于:https://www.cnblogs.com/shihao/p/3346485.html

總結(jié)

以上是生活随笔為你收集整理的Rsync 3.1.0 发布,文件同步工具的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。