Debian
Duplicity Errno 2 - 沒有這樣的文件或目錄
我正在嘗試設置一個腳本來將 linux 機器備份到 CIFS 共享。
我手動掛載了 CIFS 共享並創建了一些測試文件夾 - 好的,然後我使用一個相當簡單的命令手動執行 duplicity,以確保一切正常,並且在這個上不行:)
duplicity /root file:///cifsmountfolder/existingfolder/ results: No signatures found, switching to full backup. Traceback (most recent call last): File "/usr/bin/duplicity", line 463, in <module> with_tempdir(main) File "/usr/bin/duplicity", line 458, in with_tempdir fn() File "/usr/bin/duplicity", line 449, in main full_backup(col_stats) File "/usr/bin/duplicity", line 155, in full_backup bytes_written = write_multivol("full", tarblock_iter, globals.backend) File "/usr/bin/duplicity", line 99, in write_multivol backend.put(tdp, dest_filename) File "/usr/lib/python2.5/site-packages/duplicity/backends.py", line 279, in put target_path.writefileobj(source_path.open("rb")) File "/usr/lib/python2.5/site-packages/duplicity/path.py", line 500, in writefileobj fout = self.open("wb") File "/usr/lib/python2.5/site-packages/duplicity/path.py", line 448, in open else: result = open(self.name, mode) IOError: [Errno 2] No such file or directory: '/cifsmountfolder/existingfolder/duplicity-full.2010-09-18T18:41:43-07:00.vol1.difftar.gpg'
有任何想法嗎?
謝謝你。
盧克
掛載 cifs 時,使用 mapchars 選項,這將允許重複寫入包含在其文件命名約定中的冒號 (:) 字元。
有關所有選項,請參見http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html。
看起來它真的無法寫入該文件夾。做什麼
touch /cifsmountfolder/existingfolder/test
?