maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Depreciated] BackupMenu - Backup & restore OS images(+ other features) (https://talk.maemo.org/showthread.php?t=58633)

Dany-69 2010-09-23 16:26

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
o.O ... my english isn't good enought to understand T_T
What shiuld i do?

debernardis 2010-09-23 16:28

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
@Robbiethe1st:
Code:

Mounting the RootFS...
Backing up Rootfs with Tar...
Size:  Time:  0

Errors:  1  Last:  /usr/share/backupmenu/BackupMenu
.item:  line 852: gtar: not found

I guess its gnu-tar. I have a package which delivers it as /usr/bin/tar/gnu
Maybe I need another one?

EDIT: nevermind. I forgot copying the gtar binary. My shame. :(

debernardis 2010-09-23 16:38

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
Quote:

Originally Posted by Dany-69 (Post 824508)
o.O ... my english isn't good enought to understand T_T
What shiuld i do?

Installati il package tar-gnu e poi, come root

Code:

cd /
/usr/bin/gnu/tar xvzf /home/user/MyDocs/backupmenu-20100919.tar.gz

Questo ti scompatta il tar di Robbie a partire da /

Dany-69 2010-09-23 16:41

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
Quote:

Originally Posted by debernardis (Post 824522)
Installati il package tar-gnu e poi, come root

Code:

cd /
/usr/bin/gnu/tar xvzf /home/user/MyDocs/backupmenu-20100919.tar.gz

Questo ti scompatta il tar di Robbie a partire da /

Ahhhh ecco ! XD č vero bisogna porsi nella directory di destinazione :eek:
Sto bruciato perdonami xD Felice di trovare un altro italiano (almeno cosi sembra :) )

PS: Robbie you should add a " cd / " on your post xD

EDIT: ernesto ... the same problem ..

Nokia-N900:~# cd /
Nokia-N900:/# apt-get install tar-gnu
Reading package lists... Done
Building dependency tree
Reading state information... Done
tar-gnu is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Nokia-N900:/# /usr/bin/gnu/tar xvzf /home/user/MyDocs/backupmenu-20100919.tar.gz/usr/bin/gnu/tar: /home/user/MyDocs/backupmenu-20100919.tar.gz: funzione "open" non riuscita: No such file or directory
/usr/bin/gnu/tar: Errore irrimediabile: uscita immediata
/usr/bin/gnu/tar: Child returned status 2
/usr/bin/gnu/tar: Uscita con stato di fallimento in base agli errori precedenti
Nokia-N900:/# tar xvzf /home/user/MyDocs/backupmenu-20100919.tar.gz /
tar: /home/user/MyDocs/backupmenu-20100919.tar.gz: funzione "open" non riuscita: No such file or directory
tar: Errore irrimediabile: uscita immediata
tar: Child returned status 2
tar: /: non trovato nell'archivio
tar: Uscita con stato di fallimento in base agli errori precedenti
Nokia-N900:/#

EDIT2: the name of the file is wrong .. Robbie you have written backupmenu-20100919.tar.gz ... but the files downloaded has the name : backupmenu-20100923.tar.gz

debernardis 2010-09-23 16:53

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
@Dany: Robbie made a mistake. The file name is not that of 19th... See the name of the file you downloaded... it's backupmenu-20100923.tar.gz ! So correct it in the corresponding xterm command. I used the tab completion so it was correct.

Robbie ha sbagliato. Il nome del file non č quello del 19 settembre... controlla il nome del file che hai scaricato. E' backupmenu-20100923.tar.gz! Correggi il comando e funzionerą... Io avevo usato il tab per completare il comando e quindi l'aveva fatto automaticamente.

debernardis 2010-09-23 17:06

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
@RobbieThe1st:

When tarring the rootfs I get some errors like the following:
Code:

Errors: 6  Last:  gtar: ./usr/share/locale/tr/LC_M
ESSAGES/opcodes.mo:  File shrank by 7902 bytes; pad
ding with zeros

What's all about? I'm scared to try to restore the rootfs now :eek:
(I made a full backup with the previous version before, but I'd prefer to avoid complications...)

EDIT: OK I have learned that it means that the filesystem was (at least partially) corrupted. I have simply done an apt-get install --reinstall for the packages involved (in my case it was only binutils) and now tar gives no errors. Fine. But...

I have a request.

I think you should modify your (extremely useful) program so that when making a backup of the rootfs, you're able to make either a tar (present version) or an img file (previous version). Or both at the same time.

The reason is that if your rootfs is seriously borked, and you aren't able to boot (e.g. you're in a reboot loop or your device seems bricked) the img file can be quickly reflashed through an external computer - and you can't do that as easily with the tar file. On the contrary, if your rootfs is only mildly corrupted and you can still boot and run backupmenu, you're much more quickly done by untarring the tar file.

Dany-69 2010-09-23 17:17

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
ahahahah ernesto l'ho capito solo dopo anche io xD

By the way .. just made a full backup with the new script... now the restoring ... Pray for me ... i don't want to reinstall everything T_T

DrWilken 2010-09-23 17:34

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
or if You run the command like this instead:
Code:

tar xvzf /home/user/MyDocs/backupmenu-20100919.tar.gz -C /
-C / means change to / before extracting... :)

Dany-69 2010-09-23 17:35

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
Good... i've bricked T_T
Robbie the phone doesn't boot... no error restoring the images... But after exiting from backupmenu only the white led.. and then shut down...

By the way ... backupmenu still starts booting with the keyboard opened.
But maemo has dead ...

RobbieThe1st 2010-09-24 03:56

Re: [Announce] BackupMenu - Backup & restore OS images(+ other features)
 
First off:
Everyone calm down. I made a couple mistakes in my instructions(in addition to just copy-pasting it from my previous post; hence the wrong date) - It was 4AM!


Second, I suggest no one else restore until I figure out what went wrong with Dany's restore.

Quote:

Originally Posted by debernardis (Post 824551)
I think you should modify your (extremely useful) program so that when making a backup of the rootfs, you're able to make either a tar (present version) or an img file (previous version). Or both at the same time.

No need to shout!
I actually talked about that in my previous post; I guess I might as well.


Quote:

Originally Posted by Dany-69 (Post 824582)
Good... i've bricked T_T
Robbie the phone doesn't boot... no error restoring the images... But after exiting from backupmenu only the white led.. and then shut down...

By the way ... backupmenu still starts booting with the keyboard opened.
But maemo has dead ...

First, can you open up your rootfs backup file and copy out the "tarstatus" file for me? If its not empty, post the contents here.

This is incredibly troubling. Here's why:
When you do a restore, I have it rm -rf the entire rootfs first.
If BackupMenu still starts, that means that (most) of the files -were- restored, and its able to boot off the RootFS.
If maemo -won't- boot though, the question is why not?

I'm going to go check on my own; keep your fingers crossed.


All times are GMT. The time now is 13:06.

vBulletin® Version 3.8.8