Duplicity Errno 2-没有这样的文件或目录

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'

有任何想法吗?

谢谢。

吕克

答案1

挂载 cifs 时,使用 mapchars 选项,这将使 duplicity 能够写入其文件命名约定中包含的冒号 (:) 字符。

http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html针对所有选项。

答案2

看起来确实无法写入该文件夹。该怎么touch /cifsmountfolder/existingfolder/test办?

相关内容