cannot change temp dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
duplicity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Louis Bouchard |
Bug Description
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://
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://
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://
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.
Related branches
- duplicity-team: Pending requested
-
Diff: 52 lines (+13/-3)2 files modifiedduplicity/patchdir.py (+7/-3)
duplicity/tempdir.py (+6/-0)
description: | updated |
Changed in duplicity: | |
importance: | Undecided → Medium |
milestone: | none → 0.6.21 |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
Changed in duplicity (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
sounds like the same issue here lists.gnu. org/archive/ html/duplicity- talk/2012- 09/msg00000. html
http://
..ede