2008-02-08 [長年日記]
_ rsyncエラー対策
転送先がsambaでマウントされたディレクトリだと、実体はMS-Windowsなのでグループが変更できず、エラー (コピー自体はされる)
$ rsync -rlptogDuvb --backup-dir=~/rsync_test/old ~/rsync_test/from /mnt/hishidama/rsync_test/to building file list ... done chown from : Operation not permitted chown from/test : Operation not permitted chown from/test.txt : Operation not permitted chown from/test/tt.txt : Operation not permitted from/tt.txt chown from/テスト.txt : Operation not permitted backup_dir is ~/rsync_test/old chown from/tt.txt : Operation not permitted chown from : Operation not permitted chown from/test : Operation not permitted wrote 204 bytes read 42 bytes 164.00 bytes/sec total size is 32 speedup is 0.13この場合、 「-g」オプションを除けばこのエラーは消える。
[UNIX「リモート同期」コマンド(Hishidama's UNIX-command "rsync" Memo)]
/usr/bin/rsync -avz --delete /mnt/share/ /var/autofs/misc/usbhdd/bak
つーことで↑のやつを↓してみた。
/usr/bin/rsync -rlptDvz --delete /mnt/share/ /var/autofs/misc/usbhdd/bak
[ツッコミを入れる]
[]

