[Bug 1005901] [NEW] cannot change temp dir
Launchpad Bug Tracker
1005901 at bugs.launchpad.net
Thu Jul 18 08:16:48 UTC 2013
You have been subscribed to a public bug by Louis Bouchard (louis-bouchard):
SRU justification :
Duplicity does not honor the TMPDIR, TEMP, TMP or --tempdir redirection
as expected.
Impact :
If the available size in /tmp is too small, restore may fail to complete
Fix :
Backport upstream fix applied in 0.6.21 (Merge proposal from the
upstream task of this bug)
Test Case :
Note: Incremental backup is necessary so both the full & difftar are required in /tmp which will require more than 50Mb
1) Mount a 50Mb file system under /tmp
~# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 48M 794K 45M 2% /tmp
2) Create a 60Mb file to be backed up under /srv called data
dd if=/proc/kcore of=/srv/data bs=1M count=60
3) Do a full backup of /srv into /backup
duplicity full --name test --encrypt-key A6C785C2 --sign-key A6C785C2
--volsize 25 /srv file:///backup/duply
4) Modify the 60Mb file so it can be picked up by the incremental backup
dd if=/proc/kcore of=/srv/data bs=1M count=10 conv=notrunc oflag=append
5) Do an incremental backup
duplicity incr --name 'duply_test' --encrypt-key A6C785C2 --sign-key A6C785C2 --volsize 25 /srv file:///backup/duply
6) Restore the flag using TMPDIR :
TEMPDIR=/mytemp duplicity --name 'duply_test' --encrypt-key A6C785C2 --sign-key A6C785C2 --verbosity '4' --volsize 25 -t now file:///backup/duply /restore
With the patch, the command will succeed.
Regression :
None expected, this code is used in the version currently available in
Raring
Description of the problem :
When /tmp is too small, duplicity is sometimes unable to do a restore.
Using TMPDIR variable or --tempdir doe not work.
** Affects: duplicity
Importance: Medium
Status: Fix Released
** Affects: duplicity (Ubuntu)
Importance: Undecided
Status: Fix Released
** Affects: duplicity (Ubuntu Precise)
Importance: Undecided
Assignee: Louis Bouchard (louis-bouchard)
Status: In Progress
--
cannot change temp dir
https://bugs.launchpad.net/bugs/1005901
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list