Ubuntu 20.04.2 LTS - Deja-Dup Backup Restore - "End of File Error"
I am a relatively new user of Ubuntu. I am in the process of getting familiarized to its functioning and the ways and means of troubleshooting commonly faced issues. I faced a unique problem as described below:
Narration of the problem: The main /Home folder and its contents of my Ubuntu 20.04.2 device disappeared from its original location due to sudden power failure.
My present problem:
I am unable to restore the /Home folder and its contents with Deja-Dup backup files, fortunately available in an external HDD partition. The backed up content has an intact manifest file; and, with 192 volumes - all "full" tar.gz backups {no incremental backups, I presume, because I found no file with 'inc' figuring in the filenames} spread over the period from 2021/07/15 to 2021/07/20.
I ran the Duplicity Backup tool to restore the backups of a particular date (2021-07-15) from the Storage location (external HDD partition) to the non-root location of restoration: /tmp/restore (where 'restore' is the name of the tmp directory created with the terminal command: $ make dir -p /tmp/restore) in the main Ubuntu 20.04.2 device. After the Backup tool worked for a while, I encountered the following "End-of-File Error, and the restore process stopped with the following alert:
"Failed to read /tmp/duplicity-
I tried to repeat the same exercise with a Folder with a different name created in the main Ubuntu (blank) /Home location. The same error (with a different traceback object description) as above repeated again.
How do I proceed further to retrieve my lost /Home folder and its contents?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Déjà Dup Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please read typo error "make dir" wrongly entered. Actually executed mkdir only.
Revision history for this message
|
#2 |
The terminal output of the command $ sudo duplicity collection-status file://
Connecting with backend: BackendWrapper
Archive dir: /root/.
Found 0 secondary backup chains
No backup chains with active signatures found
No orphaned or incomplete backup sets found
Revision history for this message
|
#3 |
A small caution: you wrote that you ran "sudo duplicity collection-status file://
But you are missing a slash there. It should be "sudo duplicity collection-status file://
The command you ran was looking at the relative directory ./media/
What happens when you run the corrected version with three slashes?
Revision history for this message
|
#4 |
Thank you for your prompt response, Mr. Michael Terry.
The terminal has given the following output with $ *sudo duplicity
collection-status file///
Bad URL ' file///
<email address hidden>:1234/path" and "file:/
information.
Waiting for your support for troubleshooting the "Restore with Deja-Dup
failure problem".
Regards,
Anand
On Sat, 24 Jul, 2021, 14:02 Michael Terry, <
<email address hidden>> wrote:
> Your question #698099 on Déjà Dup changed:
> https:/
>
> Status: Open => Needs information
>
> Michael Terry requested more information:
> A small caution: you wrote that you ran "sudo duplicity collection-
> status file://
>
> But you are missing a slash there. It should be "sudo duplicity
> collection-status file://
>
> The command you ran was looking at the relative directory
> ./media/
> was nothing in it (correctly).
>
> What happens when you run the corrected version with three slashes?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#5 |
Now the colon is missing in the file name
Revision history for this message
|
#6 |
Further;
While Deja-Dup backup path to the 3rd partition (labelled "Ubuntu_Backup")
of an external, usb-mounted HDD has taken place normally during the period
from 15/07/21 to 20/07/21 (without encryption password), *thereafter, it is
asking for encryption password*.
The terminal output of the command for reviewing permissions in the media
folder reads as follows:
anand@ubuntu-
total 12
drwxr-xr-x 3 root root 4096 Jul 21 18:17 ./
drwxrwxr-x 20 anand anand 4096 Jul 24 07:59 ../
*drwxr-xr-x 2 root root 4096 Jul 21 18:17 Ubuntu_Backup/*
in which *"Ubuntu_Backup"* folder (same name as that of the 3rd partition
of the HDD on usb) is the location for restoration of the backups in the
'media' folder (last line in bold in the above terminal output).
Looks like my troubleshooting efforts as of 21/07/21 have landed up with
*/media/
suppose; hence, the failure to "Restore" backups to their original
locations from the external HDD; is my assessment in order?
Waiting for your support to resolve the issue,
Regards,
Anand
---------- Forwarded message ---------
From: Anand Manthena <email address hidden>
Date: Sun, Jul 25, 2021 at 4:30 PM
Subject: Re: [Question #698099]: Ubuntu 20.04.2 LTS - Deja-Dup Backup
Restore - "End of File Error"
To: <email address hidden>
Thank you for your prompt response, Mr. Michael Terry.
The terminal has given the following output with $ *sudo duplicity
collection-status file://
QUOTE:
*anand@
file://
for anand: Last full backup date: Thu Jul 15 13:39:28 2021Collection
Status-
/root/.
backup chains.Found primary backup chain with matching signature
chain:-
2021Chain end time: Tue Jul 20 12:32:02 2021Number of contained backup
sets: 6Total number of contained volumes: 579 Type of backup set:
Jul 15 13:39:28 2021 574 Incremental Fri Jul
16 13:54:30 2021 1 Incremental Sat Jul 17
06:46:49 2021 1 Incremental Sun Jul 18
11:59:29 2021 1 Incremental Mon Jul 19
17:52:53 2021 1 Incremental Tue Jul 20
12:32:02 2021 1------
incomplete backup sets found.*
UNQUOTE
Waiting for your support for troubleshooting the "Restore with Deja-Dup
failure problem".
Regards,
Anand
On Sat, 24 Jul, 2021, 14:02 Michael Terry, <
<email address hidden>> wrote:
> Your question #698099 on Déjà Dup changed:
> https:/
>
> Status: Open => Needs information
>
> Michael Terry requested more information:
> A small caution: you wrote that you ran "sudo duplicity collection-
> status file://
>
> But you are missing a slash there. It should be "sudo duplicity
> collection-status file://
>
> The command you ran was looking at the relative directory
> ./media/
> was nothing in it (correctly).
>
> What happens when you run the corrected version with three slashes?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#7 |
Now Deja-Dup is neither backing up (after 21/07/21 - asking for encryption
password) nor restoring the /home folder, which disappeared due to sudden
power failure.
Anand
On Sun, 25 Jul, 2021, 18:31 Anand Manthena, <
<email address hidden>> wrote:
> Your question #698099 on Déjà Dup changed:
> https:/
>
> Status: Answered => Open
>
> You are still having a problem:
> Further;
> While Deja-Dup backup path to the 3rd partition (labelled "Ubuntu_Backup")
> of an external, usb-mounted HDD has taken place normally during the period
> from 15/07/21 to 20/07/21 (without encryption password), *thereafter, it is
> asking for encryption password*.
> The terminal output of the command for reviewing permissions in the media
> folder reads as follows:
>
> anand@ubuntu-
>
> total 12
>
> drwxr-xr-x 3 root root 4096 Jul 21 18:17 ./
>
> drwxrwxr-x 20 anand anand 4096 Jul 24 07:59 ../
>
> *drwxr-xr-x 2 root root 4096 Jul 21 18:17 Ubuntu_Backup/*
>
> in which *"Ubuntu_Backup"* folder (same name as that of the 3rd partition
> of the HDD on usb) is the location for restoration of the backups in the
> 'media' folder (last line in bold in the above terminal output).
>
> Looks like my troubleshooting efforts as of 21/07/21 have landed up with
> */media/
> suppose; hence, the failure to "Restore" backups to their original
> locations from the external HDD; is my assessment in order?
>
> Waiting for your support to resolve the issue,
>
> Regards,
>
> Anand
>
> ---------- Forwarded message ---------
> From: Anand Manthena <email address hidden>
> Date: Sun, Jul 25, 2021 at 4:30 PM
> Subject: Re: [Question #698099]: Ubuntu 20.04.2 LTS - Deja-Dup Backup
> Restore - "End of File Error"
> To: <email address hidden>
>
>
> Thank you for your prompt response, Mr. Michael Terry.
>
> The terminal has given the following output with $ *sudo duplicity
> collection-status file://
>
> QUOTE:
>
>
>
>
>
>
>
>
>
>
>
>
>
> *anand@
> file://
> for anand: Last full backup date: Thu Jul 15 13:39:28 2021Collection
> Status-
> /root/.
> backup chains.Found primary backup chain with matching signature
> chain:-
> 2021Chain end time: Tue Jul 20 12:32:02 2021Number of contained backup
> sets: 6Total number of contained volumes: 579 Type of backup set:
> Time: Num volumes: Full Thu
> Jul 15 13:39:28 2021 574 Incremental Fri Jul
> 16 13:54:30 2021 1 Incremental Sat Jul 17
> 06:46:49 2021 1 Incremental Sun Jul 18
> 11:59:29 2021 1 Incremental Mon Jul 19
> 17:52:53 2021 1 Incremental Tue Jul 20
> 12:32:02 2021 1------
> incomplete backup sets found.*
> UNQUOTE
> Waiting for your support for troubleshooting the "Restore with Deja-Dup
> failure problem".
>
> Regards,
>
> Anand
>
>
> On Sat, 24 Jul, 2021, 14:02 Michael Terry, <
> <email address hidden>> wrote:
>
> > Your question #698099 on Déjà Dup changed:
> > https:/
> >
> > Status: Open => Needs information
> >
> > Michael Terry requested more information:
> > A small caution: you wrote that you ran "sudo duplicity collection-
> > status file://
> >
> > But you are missing a slash there. It should be "sudo duplicity
> > collection-status file://
> >
> > The command you ran was looking at the relative directory
> > ./media/
> > was nothing in it (correctly).
> >
> > What happens when you run the corrected version with three slashes?
> >
> > --
> > To answer this request for more information, you can either reply to
> > this email or enter your reply at the following page:
> > https:/
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>
Revision history for this message
|
#8 |
OK, so the collection-status run showed that there's a backup there, that's good.
I'm a little confused about whether the backup is encrypted or not though. Looks like the backups from July 16->20 are encrypted (the ones returned from collection-status). But your initial message indicated that your backup files were all tar.gz files, which would not be encrypted.
Maybe somehow you have a mix of encrypted and non-encrypted, and that is confusing duplicity?
If you run the following command, do you get any useful files out of it, in the /tmp/restored directory?
duplicity restore file://
Revision history for this message
|
#9 |
The output of the suggested command $ duplicity restore
file://
reads as follows:
*Local and Remote metadata are synchronized, no sync needed.*
*Last full backup date: none*
*GnuPG passphrase for decryption:*
I didn't get any useful files out of the above command (though
collection-status output displayed "full" 574 volumes which are *difftar.gz*
files (which I suppose are encrypted files), and 5 "inc"/incremental
volumes, totalling to 579 volumes).
On Mon, Jul 26, 2021 at 2:11 AM Michael Terry <
<email address hidden>> wrote:
> Your question #698099 on Déjà Dup changed:
> https:/
>
> Status: Open => Needs information
>
> Michael Terry requested more information:
> OK, so the collection-status run showed that there's a backup there,
> that's good.
>
> I'm a little confused about whether the backup is encrypted or not
> though. Looks like the backups from July 16->20 are encrypted (the ones
> returned from collection-status). But your initial message indicated
> that your backup files were all tar.gz files, which would not be
> encrypted.
>
> Maybe somehow you have a mix of encrypted and non-encrypted, and that is
> confusing duplicity?
>
> If you run the following command, do you get any useful files out of it,
> in the /tmp/restored directory?
>
> duplicity restore file://
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#10 |
Ah. *.tar.gz files are not encrypted, actually. Does the following command do anything useful?
duplicity restore file://
Revision history for this message
|
#11 |
I am summarizing the gist of the problem being faced by me, as detailed
below:
1. This is to confirm that approximately *137.4 GB of backed-up,
deja-dup content* is available at the location,* Name: backup; Type: Folder
(inode/directory); Parent folder: /run/timeshift with Permissions:
Owner=Me, for Create and delete files; Group=root, for Create and delete
files & Others, to Access files. *There exists BLANK “Duplicity” and “lost
& found” folders at the same location; the “timeshift” folder too is at the
same location, complete with all the desired snapshots.
reason for *timeshift *to appear in the above path, when there exists a
dedicated partition configured in /etc/fstab for *Timeshift *in a different
partition at the path: */media/
detailed in the next point Sl. No. 2 below:
2. I have configured “TIMESHIFT” *rsync *snapshots backup in the 4th
ext4 partition of a usb_HDD labelled “*TIMESHIFT_
/etc/fstab file with:
*UUID (of the 4th partition) /media/
defaults 0 0*
It is mounting correctly and the Timeshift backup is taking place
properly, complete
with all the desired snapshots.
3. I have configured “Deja-Dup” /Home folder backup in the 3rd ext4
partition of the SAME usb_HDD labelled “Ubuntu_Backup” to mount in
/etc/fstab file with:
*UUID (of the 3rd partition) /media/
defaults 0 0*
But the partition is mounting at */run/timeshift
specified path */media/
the “Disks” GUI application*, it is displaying the complete backup of
approx. 137.4 GB content including full and incremental Deja-Dup backup
files.
4. There also exists a “Ubuntu_Backup” folder on the Ubuntu desktop
with 4.8 GB (partial) content of Deja-Dup “full” backup files only of
15/07/21, which seeming;y got created during my troubleshooting effort on
21/07/21 (which may not be of much use, I presume – nevertheless retained,
if needed later).
I am utterly confused as to how the *“backup” *folder got created by the
system (refer point Sl. No 1 above) and how to restore the original */Home
folder* (lost due to sudden power failure) back to its earlier status. Your
support shall be highly appreciated.
Thanks.
Anand
On Thu, Jul 29, 2021 at 5:16 AM Michael Terry <
<email address hidden>> wrote:
> Your question #698099 on Déjà Dup changed:
> https:/
>
> Status: Open => Needs information
>
> Michael Terry requested more information:
> Ah. *.tar.gz files are not encrypted, actually. Does the following
> command do anything useful?
>
> duplicity restore file://
> encryption
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https:/
>
> You received this question notification because you asked the question.
>
Revision history for this message
|
#12 |
I am attaching the "deja-dup log" file.
I am unable to figure out the cause of the duplicity software tool failing
to backup beyond 20/07/21 and demanding an encryption password (which I
never used earlier) for initiating a fresh backup each time. "Restore"
backup is also throwing up "End-of-File" error and not restoring the
available backups (15/07/21 to 20/07/21).
Can the cause of Backup & Restore failure be ascertained from the
attached"deja-dup log" file, which I am unable to find out being a novice ?
Any simpler and faster CLI method to restore Backup & Restore
functionalities, or the easiest way to discard/(preserve elsewhere) the
existing backups and start afresh without being saddled with the same set
of errors ?
Thanks
Anand
Revision history for this message
|
#13 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.