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을 실행하는 두 파일 서버 간에 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.... 우분투 박스의 유일한 목적은 원격으로 파일을 백업하는 것이므로 그것이 문제가 되지 않는다고 생각합니다.

답변2

cron스크립트를 실행하는 사용자는 rsync대상 디렉터리를 소유하지 않거나 대상 디렉터리에 대한 쓰기 권한이 없으므로 파일을 생성하거나 액세스 시간을 변경할 수 없습니다.

관련 정보