SME Server 7.4を使用しているUbuntu 10.10で「rsync:時間を設定できません...:操作が許可されていません(1)」エラーが発生するのはなぜですか? [コピー]

SME Server 7.4を使用しているUbuntu 10.10で「rsync:時間を設定できません...:操作が許可されていません(1)」エラーが発生するのはなぜですか? [コピー]

SME Server 7.4とUbuntu 10.10を実行している2つのファイルサーバー間でsshを介してrsyncを試しています。最初のrsyncはうまくいきましたが(未知の理由で)今はまあ...結果は次のとおりです。

[i@i-drive ~]$ rsync -avz -e ssh /home/e-smith/files/ibays/drive-i/files/Warehouse\ Pics/* fm-backup@[hostname removed]:~/img_all/
sending incremental file list
Converted Warehouse Pictures/
rsync: failed to set times on "/home/fm-backup/img_all/Converted Warehouse Pictures": Operation not permitted (1)
Converted Warehouse Pictures/12903-13099/
rsync: failed to set times on "/home/fm-backup/img_all/Converted Warehouse Pictures/12903-13099": Operation not permitted (1)
Converted Warehouse Pictures/12903-13099/13038/
rsync: recv_generator: mkdir "/home/fm-backup/img_all/Converted Warehouse Pictures/12903-13099/13038" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
Converted Warehouse Pictures/30500 - 30600/30677/
rsync: failed to set times on "/home/fm-backup/img_all/Converted Warehouse Pictures/30500 - 30600/30677": Operation not permitted (1)
Converted Warehouse Pictures/30500 - 30600/30677/P1430928.JPG
Converted Warehouse Pictures/30500 - 30600/30677/P1430929.JPG
rsync: mkstemp "/home/fm-backup/img_all/Converted Warehouse Pictures/30500 - 30600/30677/.P1430928.JPG.8SDmeO" failed: Permission denied (13)
rsync: mkstemp "/home/fm-backup/img_all/Converted Warehouse Pictures/30500 - 30600/30677/.P1430929.JPG.qEfwpI" failed: Permission denied (13)
Converted Warehouse Pictures/30900 - 31000/
rsync: recv_generator: mkdir "/home/fm-backup/img_all/Converted Warehouse Pictures/30900 - 31000" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
Converted Warehouse Pictures/Tiff's Folder/
rsync: failed to set times on "/home/fm-backup/img_all/Converted Warehouse Pictures/Tiff's Folder": Operation not permitted (1)
Converted Warehouse Pictures/Tiff's Folder/IMG_3474.JPG
Converted Warehouse Pictures/Tiff's Folder/IMG_3475.JPG
Converted Warehouse Pictures/Tiff's Folder/IMG_3476.JPG
rsync: mkstemp "/home/fm-backup/img_all/Converted Warehouse Pictures/Tiff's Folder/.IMG_3474.JPG.aBPfwH" failed: Permission denied (13)
rsync: mkstemp "/home/fm-backup/img_all/Converted Warehouse Pictures/Tiff's Folder/.IMG_3475.JPG.4rQNSM" failed: Permission denied (13)
rsync: mkstemp "/home/fm-backup/img_all/Converted Warehouse Pictures/Tiff's Folder/.IMG_3476.JPG.EpQJkY" failed: Permission denied (13)
Unconverted Warehouse Pictures/PANA 1430200/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430300/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430300": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430300/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430400/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430400": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430400/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430500/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430500": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430500/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430600/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430600": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430600/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430700/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430700": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430700/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430800/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430800": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430800/Thumbs.db
Unconverted Warehouse Pictures/PANA 1430900/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430900": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1430900/Thumbs.db
Unconverted Warehouse Pictures/PANA 1440000/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1440000": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1440000/Thumbs.db
Unconverted Warehouse Pictures/PANA 1440100/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1440100": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1440100/Thumbs.db
Unconverted Warehouse Pictures/PANA 1440200/
rsync: failed to set times on "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1440200": Operation not permitted (1)
Unconverted Warehouse Pictures/PANA 1440200/Thumbs.db
rsync: mkstemp "/home/fm-backup/img_all/Unconverted Warehouse Pictures/PANA 1430200/.Thumbs.db.IRLwfB" failed: Permission denied (13)
inflate returned -3 (0 bytes)
rsync error: error in rsync protocol data stream (code 12) at token.c(546) [receiver=3.0.7]
rsync: connection unexpectedly closed (8118 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]

(注:私を信じてください。TRWTFがディレクトリを整理する方法がないことを知っています。それは別のプロジェクトです。)

どちらのアカウントもルートではなく、これが正常に機能するためにアカウントがルートになることは望ましくありません。

i@i-drive rsyncsは、同じフォルダ内でも私のOSXファイルサーバーとうまく同期します。 OSXシステムのアカウントもルートではありません。

答え1

問題を解決したと確信しています... chmod -R 777fm-backupフォルダに移動し、rsyncオプションを...-avz...-から-に変更する必要がありました...rvz...。 Ubuntuボックスの唯一の目的は、リモートでファイルをバックアップすることですので、それが問題にならないと思います。

答え2

cronスクリプトを実行しているユーザーは、ターゲットrsyncディレクトリを所有していないか、ターゲットディレクトリへの書き込み権限がないため、ファイルを作成したりアクセス時間を変更したりすることはできません。

関連情報