Duplicity with verbosity=9 fills up /tmp
Hi,
we have a vserver with a ramdisk /tmp, 16mb big. even with passing
--archive-dir=/var/tmp/duplicity --tempdir=/var/tmp/duplicity
to duplicity, /tmp gets filled up to till nothing is free. That's annoying, backupninja should redirect the console output somewhere else than /tmp.
When running duplicity by hand with the same cmd as listed below, it doesn't touch /tmp so it's clearly a backupninja issue.
After i cancelled backupninja before /tmp i filled to the max i found these files:
root@flea:~# ls -la /tmp/ total 8544 drwxrwxrwt 3 root root 140 Oct 29 15:55 . drwxr-xr-x 20 root root 4096 Oct 27 05:30 .. -rw------- 1 root root 19923 Oct 29 15:50 backupninja.buffer.17JjdeVG -rw------- 1 root root 8706653 Oct 29 15:54 backupout.8k8Yw71M
backupout.8k8Yw71M is just the console output from backupninja --now --debug
here's the cmd backupninja uses to run the duplicity handler, which i found in the proc table:
root 21420 0.0 0.0 5648 1128 pts/1 SN+ 15:50 0:00 su -c TMPDIR=/var/tmp/duplicity duplicity --verbosity 9 --archive-dir=/var/tmp/duplicity --tempdir=/var/tmp/duplicity --no-print-statistics --scp-command 'scp -oIdentityFile=/root/.ssh/backup_flea_id_rsa' --sftp-command 'sftp -oIdentityFile=/root/.ssh/backup_flea_id_rsa' --encrypt-key EE9505C9 --sign-key EE9505C9 --full-if-older-than 30D --extra-clean --exclude '/etc/ssh/*' --exclude '/home/*/.gnupg' --exclude '/home/*/.local/share/Trash' --exclude '/home/*/.Trash' --exclude '/home/*/.thumbnails' --exclude '/home/*/.beagle' --exclude '/home/*/.aMule' --exclude '/home/*/.gnupg' --exclude '/home/*/.gpg' --exclude '/home/*/nobackup' --exclude '/home/*/.ssh' --exclude '/home/*/gtk-gnutella-downloads' --exclude '/root/nobackup' --exclude '/var/www/munin' --include '/etc' --include '/home' --include '/opt' --include '/root' --include '/srv' --include '/usr/local/*bin' --include '/usr/local/etc' --include '/usr/local/lib' --include '/usr/local/share' --include '/var/lib/dpkg/status*' --include '/var/local' --include '/var/log' --include '/var/mail' --include '/var/opt' --include '/var/spool' --include '/var/backups' --include '/var/www' --include '/var/lib/puppet/ssl' --include '/var/lib' --include '/var/local' --exclude '**' / scp://backup_flea@wildturkey.leap.se//srv/backupninja-duplicity/flea.leap.se >/tmp/backupout.8k8Yw71M 2>&1
(from redmine: created on 2012-10-29)
Edited by Guillaume Subiron