Hi,
I'm trying to backup a CentOS server (CentOS release 6.4 (Final)) with duplicity (version 0.6.21) but I keep having the error message "Exception IOError: (28, 'No space left on device'). The partition with \tmp (/dev/sda2) is only 20Go so it get filled very fast. I tried to use the tempdir and archive-dir options
to specify another folder (/store/secsi2/tmp) on a bigger partition (/dev/sda6) but I still got the same error message.
Here is my command:
duplicity incremental \
-v 5 \
--full-if-older-than 1M \
--exclude /dev \
--exclude /mnt \
--exclude /proc \
--exclude /root/.cache/duplicity \
--exclude /root/.gnupg \
--exclude /root/.ssh \
--exclude /sys \
--exclude /tmp \
--exclude /var/log \
--exclude /var/svn/_old \
--encrypt-key XXXXXXXX \
--sign-key XXXXXXXX \
--gpg-options='--compress-algo=zlib' \
--volsize 1024 \
--tempdir /store/secsi2/tmp \
--archive-dir=/store/secsi2/tmp \
/ \
"${remote}"
Here is the result form "df -h":
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 19G 195M 99% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sda1 97M 44M 48M 48% /boot
/dev/sda6 1.8T 216G 1.5T 13% /store
/dev/sda3 4.0G 367M 3.4G 10% /var
Here is the detailed error message:
Backup started, at Wed Nov 20 10:55:01 EST 2013
from /
to ...
--------------------------------------------------
Cleaning up ...
Synchronizing remote metadata to local cache...
Copying duplicity-full-signatures.20121202T080008Z.sigtar.gpg to local cache.
Copying duplicity-full-signatures.20130104T080008Z.sigtar.gpg to local cache.
Copying duplicity-full-signatures.20130104T080008Z.sigtar.gpg to local cache.
Copying duplicity-full-signatures.20121202T080008Z.sigtar.gpg to local cache.
Copying duplicity-full-signatures.20130104T080008Z.sigtar.gpg to local cache.
Traceback (most recent call last):
File "/usr/bin/duplicity", line 1411, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1404, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1282, in main
sync_archive(decrypt)
File "/usr/bin/duplicity", line 1082, in sync_archive
copy_to_local(fn)
File "/usr/bin/duplicity", line 1029, in copy_to_local
gpg.GzipWriteFile(src_iter,
tdp.name, size=sys.maxint)
File "/usr/lib64/python2.6/site-packages/duplicity/gpg.py", line 387, in GzipW
riteFile
gzip_file.write(new_block.data)
File "/usr/lib64/python2.6/gzip.py", line 197, in write
self.fileobj.write( self.compress.compress(data) )
File "/usr/lib64/python2.6/site-packages/duplicity/gpg.py", line 369, in write
result = self.fileobj.write(buf)
IOError: [Errno 28] No space left on device
Exception IOError: (28, 'No space left on device') in <bound method GzipFile.__d
el__ of <gzip duplicity.gpg.FileCounted instance at 0x29d3c68 0x29d3b48>> ignore
d
Thank you in advance for your help !
Fanny