Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup a script for backing up a linux box to a CIFS share.

I manually mounted the CIFS share and created a few test folders - OK I then ran duplicity manually with a rather simple command to begin with to make sure things work and well Not OK on this one :)

duplicity /root file:///cifsmountfolder/existingfolder/

No signatures found, switching to full backup.
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 463, in <module>
  File "/usr/bin/duplicity", line 458, in with_tempdir
  File "/usr/bin/duplicity", line 449, in main
  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/", line 279, in put
  File "/usr/lib/python2.5/site-packages/duplicity/", line 500, in writefileobj
    fout ="wb")
  File "/usr/lib/python2.5/site-packages/duplicity/", line 448, in open
    else: result = open(, mode)
IOError: [Errno 2] No such file or directory: '/cifsmountfolder/existingfolder/duplicity-full.2010-09-18T18:41:43-07:00.vol1.difftar.gpg'

any ideas?

Thank you.


share|improve this question
up vote 3 down vote accepted

When mounting cifs, use the mapchars option, which will enable duplicity to write the colon (:) characters that are included in its file naming convention.

See for all options.

share|improve this answer
The other option is to use the "--old-filenames" option which uses filenames that are compatible with windows shares. – Andrew Lowe Jul 4 '11 at 5:20

That really looks like it just cannot write to that folder. What does touch /cifsmountfolder/existingfolder/test do?

share|improve this answer
works fine, I can create files, more folders, edit files, delete files, delete fodlers etc. Thanks – Luma Oct 15 '10 at 14:45
That's pretty mysterious. I would try running strace duplicity ... with the same arguments to confirm it is the open syscall that's failing and perhaps to get some more data why. – poolie Oct 15 '10 at 23:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.