We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Corrupted Backup.tar

asked 2014-10-23 21:24:17 +0300

stimpson gravatar image

Hello, so today I needed to import a Backup. from an SD card but it failed. Later on I found out that the archive is corrupted and repairing it didnt work.

So is there a way (at least manually) how to get atleast some data from the corrupted Backup?

(Original data are gone, so its out of question. Update gone wrong thank to BTRFS)

edit retag flag offensive close delete

Comments

How is your backup.tar corrupted? What does it mean that ypu tried to "import" it? Do you mean you tried to restore app data from the backup? Did you use the GUI to make it and restore it? What data was there in the backup, how big is it? Does the Backup.tar contain several baclup's,made in the Settings > Backup or is there only one? What error messages when you tried to restore from that, in GUI or in CLI. How did you try to tepair it, what commands did you use? Just asking these cause the way you described the problem, really makes it quite impossible for others to diagnose, confirm or fix this issue. It'd really help if you could detail the issue you are experiencing by givibg us some more info in the Q description itself. Thanks!

foss4ever ( 2015-01-21 17:05:21 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-01-21 11:57:29 +0300

dez gravatar image

updated 2015-01-21 11:59:13 +0300

Sorry for the late answer, question notification was missed from my notifications inbox. You can try to extract data from the tar file manually. To do it you should first create /home/nemo/.vault directory and try to extract the file into it (like mkdir /home/nemo/.vault && tar xvf <path-to-your-backup-tar> -C /home/nemo/.vault. You should be cautious: if tar archive is considered as corrupted by backup application maybe metadata is corrupted.

edit flag offensive delete publish link more

Comments

Just wondering; why should users manually create /home/nemo/.vault dir? Shouldn't it always be in the phone, unless user has manually removed it? IMO even using the Jolla Utilities "Clear backup storage" tool does not erease the .vault from nemo-user home but just all the backups in there, right?

foss4ever ( 2015-01-21 17:13:51 +0300 )edit

@jjaone /home/nemo/.vault is created only when Backup application is run for the first time. So, to be sure there is /home/nemo/.vault when unpacking possibly broken Backup.tar manually, /home/nemo/.vault should be explicitly created.

dez ( 2015-01-22 14:09:05 +0300 )edit

Ok, but in case there is the .vault dir already the command given fails when the mkdir detects that directory exists and the rest of the command is not executed at all. The proper command (that takes in account both cases) is thus:

mkdir -p /home/nemo/.vault && tar xvf Backup.tar -C /home/nemo/.vault

(note the -p option in mkdir)

foss4ever ( 2015-01-26 02:24:28 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2014-10-23 21:24:17 +0300

Seen: 320 times

Last updated: Jan 21 '15