OS X 컴퓨터에서 S3의 이중 백업에서 파일을 나열하거나 복원하려고하면 권한 오류가 발생합니다.
Traceback (most recent call last):
File "/usr/local/bin/duplicity", line 1411, in <module>
with_tempdir(main)
File "/usr/local/bin/duplicity", line 1404, in with_tempdir
fn()
File "/usr/local/bin/duplicity", line 1282, in main
sync_archive(decrypt)
File "/usr/local/bin/duplicity", line 1082, in sync_archive
copy_to_local(fn)
File "/usr/local/bin/duplicity", line 1031, in copy_to_local
tdp.move(globals.archive_dir.append(loc_name))
File "/Library/Python/2.7/site-packages/duplicity/path.py", line 618, in move
self.copy(new_path)
File "/Library/Python/2.7/site-packages/duplicity/path.py", line 444, in copy
self.copy_attribs(other)
File "/Library/Python/2.7/site-packages/duplicity/path.py", line 449, in copy_attribs
util.maybe_ignore_errors(lambda: os.chown(other.name, self.stat.st_uid, self.stat.st_gid))
File "/Library/Python/2.7/site-packages/duplicity/util.py", line 65, in maybe_ignore_errors
return fn()
File "/Library/Python/2.7/site-packages/duplicity/path.py", line 449, in <lambda>
util.maybe_ignore_errors(lambda: os.chown(other.name, self.stat.st_uid, self.stat.st_gid))
OSError: [Errno 1] Operation not permitted: '/Users/dlp/.cache/duplicity/duply_default/duplicity-full-signatures.20130611T011527Z.sigtar.gz'
문제의 파일에 대한 권한은 600이며 본인은 소유자입니다.
$ ls -alh ~/.cache/duplicity/duply_default/duplicity-full-signatures.20130611T011527Z.sigtar.gz
-rw------- 1 dlp staff 11M Jun 11 15:31 /Users/dlp/.cache/duplicity/duply_default/duplicity-full-signatures.20130611T011527Z.sigtar.gz
이중성을 루트로 실행하면 예상대로 파일을 나열 할 수 있습니다. 파일은 원래 데비안 7을 실행하는 VPS에 백업되었습니다.