なんだこれは

はてなダイアリーから移転しました。

RsyncX 2.1ってどうなったんでしたっけ

バックアップソフトのRsyncX 2.1って/usr/local/bin/rsyncにHFSにリソースフォーク対応のものをインストールするんだと思ってたんだけど、あれってどうなんだったけ?

ちょっと忘れたのでメモ

区別

オリジナル:/usr/bin/rsync
RsyncX由来:/usr/local/bin/rsync

まず、オリジナルのhelp

/usr/bin/rsync -h | head -9

rsync version 2.6.3 protocol version 28
Copyright (C) 1996-2004 by Andrew Tridgell and others
http://rsync.samba.org/
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
inplace, IPv6, 32-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.

RsyncXのhelp

/usr/local/bin/rsync -h | head -10

rsync version 2.6.0 protocol version 27
Copyright (C) 1996-2004 by Andrew Tridgell and others
HFS+ filesystem support for OSX (C)2004 Kevin A. Boyd
http://rsync.samba.org/
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
IPv6, 32-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.

オリジナルのはSecurity Update 2006-002 v1.1 Mac OS X 10.4.5 (PPC)でupgradeしたんだっけ?→Appleあとinplaceってなんだろう?

man pageによると、データのコピーではなく移動に使うらしい。

This causes rsync not to create a new copy of the file and then move
it into place. Instead rsync will overwrite the existing file,
meaning that the rsync algorithm can't extract the full amount of
network reduction it might otherwise (since it does not yet try to
sort data matches -- a future version may improve this).

This option is useful for transfer of large files with block- based
changes or appended data, and also on systems that are disk bound, not
network bound.

The option implies --partial (since an interrupted transfer does not
delete the file), but conflicts with --partial-dir, --compare-dest,
and --link-dest (a future rsync version will hopefully update the
protocol to remove these restrictions).

WARNING: The file's data will be in an inconsistent state during the
transfer (and possibly afterward if the transfer gets interrupted),
so you should not use this option to update files that are in use.
Also note that rsync will be unable to update a file inplace that is
not writable by the receiving user.