Cannot restore from no-encryption and no-compression backup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
High
|
Unassigned |
Bug Description
Duplicity version: 0.7.05 or 0.6.23
Python: 2.7.6
OS : Ubuntu 14.04.3 LTS
Type of filesystem : Linux ext4 and ftp
Log;
Using archive dir: /root/.
Using backup name: 674bf12b26a94fd
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
LFTP version is 4.4.13
Using temporary directory /tmp/duplicity-
Registering (mkstemp) temporary file /tmp/duplicity-
SETTINGS:
['set ssl:verify-
Main action: restore
=======
duplicity 0.7.05 ($reldate)
Args: /usr/bin/duplicity -v 9 --no-encryption --no-compression restore ftp://bakuser@
Linux sisdb 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64
/usr/bin/python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2]
=======
Registering (mkstemp) temporary file /tmp/duplicity-
Temp has 44162039808 available, backup will use approx 34078720.
CMD: lftp -c 'source '/tmp/duplicity
Reading results of 'lftp -c 'source '/tmp/duplicity
STDERR:
---- Resolving host address...
---- 1 address found: 10.0.0.199
---- Connecting to 10.0.0.199 (10.0.0.199) port 21
<--- 220 NASFTPD Turbo station 1.3.5a Server (ProFTPD) [10.0.0.199]
---> FEAT
<--- 211-Features:
<--- MFF modify;
<--- REST STREAM
<--- MLST modify*
<--- UTF8
<--- LANG en-US*
<--- EPRT
<--- EPSV
<--- MDTM
<--- TVFS
<--- MFMT
<--- SIZE
<--- 211 End
---> LANG
<--- 200 Using default language en_US
---> OPTS UTF8 ON
<--- 200 UTF8 set to on
---> OPTS MLST modify;
<--- 200 OPTS MLST modify;
---> USER bakuser
<--- 331 Password required for bakuser
---> PASS *****
<--- 230 User bakuser logged in
---> PWD
<--- 257 "/" is the current directory
---- CWD path to be sent is `/backup_
---> CWD /backup_
<--- 250 CWD command successful
---> PASV
<--- 227 Entering Passive Mode (10,0,0,
---- Connecting data socket to (10.0.0.199) port 56094
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> QUIT
---- Closing control socket
STDOUT:
-rw-rw---- 1 bakuser everyone 20480 Oct 29 11:38 duplicity-
-rw-rw---- 1 bakuser everyone 202 Oct 29 11:38 duplicity-
-rw-rw---- 1 bakuser everyone 615508 Oct 29 11:38 duplicity-
Local and Remote metadata are synchronized, no sync needed.
CMD: lftp -c 'source '/tmp/duplicity
Reading results of 'lftp -c 'source '/tmp/duplicity
STDERR:
---- Resolving host address...
---- 1 address found: 10.0.0.199
---- Connecting to 10.0.0.199 (10.0.0.199) port 21
<--- 220 NASFTPD Turbo station 1.3.5a Server (ProFTPD) [10.0.0.199]
---> FEAT
<--- 211-Features:
<--- MFF modify;
<--- REST STREAM
<--- MLST modify*
<--- UTF8
<--- LANG en-US*
<--- EPRT
<--- EPSV
<--- MDTM
<--- TVFS
<--- MFMT
<--- SIZE
<--- 211 End
---> LANG
<--- 200 Using default language en_US
---> OPTS UTF8 ON
<--- 200 UTF8 set to on
---> OPTS MLST modify;
<--- 200 OPTS MLST modify;
---> USER bakuser
<--- 331 Password required for bakuser
---> PASS *****
<--- 230 User bakuser logged in
---> PWD
<--- 257 "/" is the current directory
---- CWD path to be sent is `/backup_
---> CWD /backup_
<--- 250 CWD command successful
---> PASV
<--- 227 Entering Passive Mode (10,0,0,
---- Connecting data socket to (10.0.0.199) port 56379
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> QUIT
---- Closing control socket
STDOUT:
-rw-rw---- 1 bakuser everyone 20480 Oct 29 11:38 duplicity-
-rw-rw---- 1 bakuser everyone 202 Oct 29 11:38 duplicity-
-rw-rw---- 1 bakuser everyone 615508 Oct 29 11:38 duplicity-
3 files exist on backend
4 files exist in cache
Extracting backup chains from list of files: [u'duplicity-
File duplicity-
Ignoring file (rejected by backup set) 'duplicity-
File duplicity-
File duplicity-
Found backup chain [Thu Oct 29 11:38:49 2015]-[Thu Oct 29 11:38:49 2015]
Last full backup date: Thu Oct 29 11:38:49 2015
Collection Status
-----------------
Connecting with backend: BackendWrapper
Archive dir: /root/.
Found 0 secondary backup chains.
Found primary backup chain with matching signature chain:
-------
Chain start time: Thu Oct 29 11:38:49 2015
Chain end time: Thu Oct 29 11:38:49 2015
Number of contained backup sets: 1
Total number of contained volumes: 1
Type of backup set: Time: Num volumes:
-------
No orphaned or incomplete backup sets found.
Registering (mktemp) temporary file /tmp/duplicity-
CMD: lftp -c 'source '/tmp/duplicity
Reading results of 'lftp -c 'source '/tmp/duplicity
STDERR:
---- Resolving host address...
---- 1 address found: 10.0.0.199
---- Connecting to 10.0.0.199 (10.0.0.199) port 21
<--- 220 NASFTPD Turbo station 1.3.5a Server (ProFTPD) [10.0.0.199]
---> FEAT
<--- 211-Features:
<--- MFF modify;
<--- REST STREAM
<--- MLST modify*
<--- UTF8
<--- LANG en-US*
<--- EPRT
<--- EPSV
<--- MDTM
<--- TVFS
<--- MFMT
<--- SIZE
<--- 211 End
---> LANG
<--- 200 Using default language en_US
---> OPTS UTF8 ON
<--- 200 UTF8 set to on
---> OPTS MLST modify;
<--- 200 OPTS MLST modify;
---> USER bakuser
<--- 331 Password required for bakuser
---> PASS *****
<--- 230 User bakuser logged in
---> PWD
<--- 257 "/" is the current directory
---> TYPE I
<--- 200 Type set to I
---> SIZE backup_
<--- 213 615508
---> MDTM backup_
<--- 213 20151029093850
---> PASV
<--- 227 Entering Passive Mode (10,0,0,
---- Connecting data socket to (10.0.0.199) port 56220
---- Data connection established
---> RETR backup_
<--- 150 Opening BINARY mode data connection for backup_
---- Got EOF on data connection
---- Closing data socket
<--- 226 Transfer complete
---> QUIT
---- Closing control socket
STDOUT:
Deleting /tmp/duplicity-
Forgetting temporary file /tmp/duplicity-
Processed volume 1 of 1
No files found in archive - nothing restored.
Releasing lockfile <lockfile.
Removing still remembered temporary file /tmp/duplicity-
Removing still remembered temporary file /tmp/duplicity-
Solution : While i was rename duplicity-
Changed in duplicity: | |
status: | New → In Progress |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
importance: | Undecided → High |
milestone: | none → 0.7.06 |
summary: |
- duplicity 0.7.05 cannot restore from ftp backup + Cannot restore from no-encryption and no-compression backup |
Changed in duplicity: | |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
status: | In Progress → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
I encountered this bug, and someone here found a solution : serverfault. com/questions/ 726525/ cannot- restore- duplicity- backup
http://
The bug is that duplicity wasn't compressing at all despite the --no-compression option, so the files are compressed despite not having the .gz extension.
Renaming .sigtar to sigtar.gz and all .difftar to .difftar.gz fixes the damn problem.
$ for i in *.difftar;do mv -v $i $i.gz;done
$ for i in *.sigtar;do mv -v $i $i.gz;done