maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] BackupMenu - OS backup & restore | New version - Jul 9th(v1.1) (https://talk.maemo.org/showthread.php?t=63975)

gabby131 2011-04-13 13:07

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by richwhite (Post 986986)
well i figured if i need to flash it'll wipe mydocs, and so the backup too. How did you get it to save to microsd?

on the bakupmenu, when you press b.) to make a backup, you'll be ask for options on where you want your backups stored.

i chose the "SD card" to save it on my micro SD, to save it under mydocs, should be "eMMC (MyDocs Partition)"

RobbieThe1st 2011-04-13 13:39

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Warnings come from the i2c-tools package(which allow for low-level hardware control). It'd safe so long as /you/ don't mess with those tools(i2cset/i2cget) yourself.

geneven 2011-04-13 13:43

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
It's an incredibly reliable and simple to use program. I think the warning is mainly for CYA purposes. I've even used it to restore from one N900 to another, so I didn't have to set up the second one from scratch. Yes, to answer one question, even backgrounds are restored. This program is to the N900 like having a net is for a tightrope walker.

richwhite 2011-04-13 14:52

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by gabby131 (Post 987306)
on the bakupmenu, when you press b.) to make a backup, you'll be ask for options on where you want your backups stored.

i chose the "SD card" to save it on my micro SD, to save it under mydocs, should be "eMMC (MyDocs Partition)"

Hmm, i was only giving the option of 'internal emmc' or 'mydocs'

RobbieThe1st 2011-04-13 23:43

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
If you don't have a /writable, fat-formatted/ SD card, it won't show the option... for good reason. It tries to mount the SD card first, and if it can't it won't show the option.

Schturman 2011-04-14 07:18

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Hello
Yesterday I installed this app and I tried to run this...
When I rebooted, I got this error message:
http://img823.imageshack.us/img823/5018/cimg1309e.jpg

When I pressed any key I got the another error message:
http://img30.imageshack.us/img30/2029/cimg1310x.jpg

When I pressed again at any key, I got the menu window, and when I started backup, I saw the red color message above the process lines:
"This can and WILL produce a broken backup"
http://img97.imageshack.us/img97/7586/cimg1311q.jpg

But when the process is completed, I got the green message - it's ok...
This process is normal or it's something missing in my device ?
Thanks

vi_ 2011-04-14 07:42

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
1. The missing files is a known error, either install the libs or ignore the error.

2. READ THE FRIGGING SCREEN! It says 'press the slide to cancel, this will produce a broken backup'

(admittedly Robbie's grammar is a bit off, to say it will make a corrupt backup somewhat negates the need to say it 'may')

Schturman 2011-04-14 08:19

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Thanks for answer...
You do not have to shout :), I just do not understand this word combinations: "Depress the hold switch..." - what is this mean ? Or your: "press the slide to cancel" - which slide ? if both of you mean to close the hd keyboard ?
Sorry man I'm a totally newbie..

vi_ 2011-04-14 08:27

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Sorry bro, I guess English isn't your first language.

The slide/switch being referred to is the lock on the side of the phone. You hold the lock slide down to cancel the backup. The message is simply warning you that if you cancel the backup, the backup will be broken.

To fix the startup errors:

as root
Code:

apt-get update
apt-get install libacl1 libattr1


Schturman 2011-04-14 08:30

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Thank you ! ;)

Schturman 2011-04-14 09:34

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
I never did reflash to my eMMC, I heard in the last eMMC image the some files/folders changed their location... The question is if I did the backup now, and after reflash of the new eMMC, can I restore this backup ?

RobbieThe1st 2011-04-14 13:51

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by vi_ (Post 987945)
(admittedly Robbie's grammar is a bit off, to say it will make a corrupt backup somewhat negates the need to say it 'may')

Did I say it may? I don't recall seeing the word 'may' anywhere in that sentance... :)
That being said, I could have used 'this may produce a broken backup', but I felt that wasn't strong enough knowing how it works internally. 'this will produce a broken backup' is more correct, but leaves out the edge-cases(i.e. tar finished but locked up somehow). So "can and WILL" it is. I used that because I remember seeing that turn of phrase elsewhere and thought it sounded nice.

Edit: Oh, btw, does anyone know of a good way to take a plaintext password string and validate it against the (DES encrypted? ) passwd file? I can do everything but the encrypting of the password to compare... anyone know a tool that'll do that?

gabby131 2011-04-14 13:55

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
@RobbieThe1st

out of topic but can i copy your oc freq settings on you sig????? looks like its more stable on 1150mhz than my settings :)

vi_ 2011-04-14 14:10

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by RobbieThe1st (Post 988193)
Did I say it may? I don't recall seeing the word 'may' anywhere in that sentance... :)
That being said, I could have used 'this may produce a broken backup', but I felt that wasn't strong enough knowing how it works internally. 'this will produce a broken backup' is more correct, but leaves out the edge-cases(i.e. tar finished but locked up somehow). So "can and WILL" it is. I used that because I remember seeing that turn of phrase elsewhere and thought it sounded nice.

Edit: Oh, btw, does anyone know of a good way to take a plaintext password string and validate it against the (DES encrypted? ) passwd file? I can do everything but the encrypting of the password to compare... anyone know a tool that'll do that?

I was simply pointing out that the turn of phrase, while sounding nice is somwhat redundant. It is like saying:

Code:

f=1+(0.1)
i.e. Always true! Excuse my boole!

Surely you would attempt to decrypt the the encrypted data with the plaintext and then run some kind of check to to see that the decrypted output is logical, given the nature of DES you would simply have to check if the output file was garbage or not.

Is this what you are asking?

edit: oopz, misread what you said. nvm.

double edit: john the ripper, possibly in the repos as 'john'.

Also, as you are using busybox (?) in backup menu, can I have a shell as an option so I can run a forced FSCK on my file system?

Schturman 2011-04-14 14:15

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Hmmm, and what with my question ? Please :)

Rob1n 2011-04-14 20:40

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by RobbieThe1st (Post 988193)
Edit: Oh, btw, does anyone know of a good way to take a plaintext password string and validate it against the (DES encrypted? ) passwd file? I can do everything but the encrypting of the password to compare... anyone know a tool that'll do that?

You can use openssl to do this. You'll need to get the salt for the password from the passwd file (the first two characters of the encrypted password), then do:
Code:

openssl passwd -crypt -salt xx password

RobbieThe1st 2011-04-15 00:08

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
@_vi:
We've been over this several times in this thread: We have /no/ framebuffer, which means no screen output for a shell. You could try porting a shell or building a wrapper which directly writes the screen as needed(how text2screen does it), but other than that you're basically stuck.


@Schturman:
Uh, probably? Just make sure to restore /both/ optfs and rootfs at the same time or things won't work properly.

@Rob1n: PERFECT.

RobbieThe1st 2011-04-16 00:41

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
So... Password protection is coming! When? As soon as I stop playing TF2 and spend a couple hours on it.
As far as implementation details goes, I'm thinking that to enable it you will crreate a file named "lock-enable.txt" in /usr/share/backupmenu/. If you leave the contents blank, it will validate against the encrypted root password in /etc/passwd, allowing for easy changes. Alternately, you'll be able to put a password hash in the lock-enable file, and it will use that instead - I'll have to figure out a command for /creating/ such a hash, though. Probably something with "openssl passwd...".

As far as other things...
1. In the process of doing the above, I'll make a generic text-entry function which can be used later. This could easily be used for a better run-command box.
2. ext2-4 modules are now copied by default; I'll have to figure out a way to autodetect the correct one to mount if I want support for anternate filesystems for mydocs/sd/opt.
3. mkfs.ext* support for reformatting the optfs should be doable, I'll just have to add an option for it.

Oh, this brings me to another problem: Is there a good way to do an "include" of shell-script code in another file such that I can use pre-defined variables inside it? My main program file's getting big and complicated, and I'd like to just move chunks into their own files.

edit: Missed a post!
@gabby131:
Uh, yes and no. You can use it if you want; It's a free world. But I doubt it'll work for you - That's tuned to be exactly right for /my/ sample, which won't be the same as yours.
What you want to do is - for each frequency - lock your n900 to that frequency, play a video via mplayer; something that will max out the cpu. If it plays, change the voltage down 1 # and repeat the test. Keep going down until the system crashes or you get decoding errors, then take that value and add two to it. That should be the minimum stable voltage for that frequency.
If you get crashes at a particular frequency later, up the voltage another 1 or 2 if it still has issues.
I'll take an hour or so to calibrate for all frequencys, but it's nice to have no instability.

Rob1n 2011-04-16 15:35

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by RobbieThe1st (Post 989536)
Oh, this brings me to another problem: Is there a good way to do an "include" of shell-script code in another file such that I can use pre-defined variables inside it? My main program file's getting big and complicated, and I'd like to just move chunks into their own files.

You should be able to pull in other files by doing ". filename.sh" - that'll run the file within the same process space (so any variables set will be remain when returning to the main script).

corduroysack 2011-04-16 15:48

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
noob question: if you have backed up using backupmenu then install power kernel can you use the backup you made prior to that to restore back to before power kernel or do you need to re-install stock kernel beforehand??

if the answer is no i now know where i've been going wrong lol

Rob1n 2011-04-16 15:53

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by corduroysack (Post 989947)
noob question: if you have backed up using backupmenu then install power kernel can you use the backup you made prior to that to restore back to before power kernel or do you need to re-install stock kernel beforehand??

if the answer is no i now know where i've been going wrong lol

You need to reinstall the kernel - it's stored in a separate location in flash to the rootfs, so isn't backed up or restored by BackupMenu.

RobbieThe1st 2011-04-17 08:39

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
New Backupmenu V0.65 has been uploaded to the repos!
It's got a couple of bugfixes and optional password protection!
To enable password protection, run "touch /usr/share/backupmenu/lock-enable.txt" Backupmenu will now ask for your root password upon boot.
If you want another password, you need to add your DES-encrypted password(in the same format as it's stored in /etc/passwd) and only that password(remove linebreaks, and /anything/ but the 13 password characters) to the above file.

fw190 2011-04-17 09:11

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
THere has been an update for bootmenu-n900 and BootMenu to 1.10.1. How does it affect BackupMenu? I've tried tu update both packages with FAPman but it failed so i did it with the standard one. Your program updated without any problems wih Fapman.

RobbieThe1st 2011-04-17 09:29

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
I have no version requirement for bootmenu-n900, just a requirement that it is installed. As such, it should work without issue.

Schturman 2011-04-17 09:57

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Hmmm... I don't see the version 0.65 in devel, I see only bootmenu-n900..

EDIT:
Ooops, now I see this update :)

lkravovicz 2011-04-17 11:09

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by vi_ (Post 987965)
To fix the startup errors:

as root
Code:

apt-get update
apt-get install libacl1 libattr1


is there a reason these arent pulled in automatically with install?

it'd be quite awesome to have this for diablo as well, any chance for that?

fw190 2011-04-17 11:24

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
@Robbie

There is a statement in the new bootmenu-n900 that it is a dummy package and can be safely removed and that the only purpose for it is a safe transition to bootmenu. I really don't know how to understand it. will bootmenu handel from now the things that bootmenu-n900 did?

corduroysack 2011-04-17 11:32

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
if updating to the new version will the old backups from the previous version still restore?

RobbieThe1st 2011-04-17 13:32

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Quote:

Originally Posted by fw190 (Post 990441)
@Robbie

There is a statement in the new bootmenu-n900 that it is a dummy package and can be safely removed and that the only purpose for it is a safe transition to bootmenu. I really don't know how to understand it. will bootmenu handel from now the things that bootmenu-n900 did?

Yup; Basically, all it means is they renamed it.

Quote:

Originally Posted by corduroysack (Post 990445)
if updating to the new version will the old backups from the previous version still restore?

Yes. Well, if there arn't bugs preventing it, of course. ;)
You'll know if the format change to the point of incompatibility - I'll drop the topic, and make a new one named V3. As well as changee the version completely.

Now, in the futire I will be making some changes that will make new backups not compatible with old versions of BM, but upgrades will always work.

gabby131 2011-04-17 13:45

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by RobbieThe1st (Post 989536)
@gabby131:
Uh, yes and no. You can use it if you want; It's a free world. But I doubt it'll work for you - That's tuned to be exactly right for /my/ sample, which won't be the same as yours.
What you want to do is - for each frequency - lock your n900 to that frequency, play a video via mplayer; something that will max out the cpu. If it plays, change the voltage down 1 # and repeat the test. Keep going down until the system crashes or you get decoding errors, then take that value and add two to it. That should be the minimum stable voltage for that frequency.
If you get crashes at a particular frequency later, up the voltage another 1 or 2 if it still has issues.
I'll take an hour or so to calibrate for all frequencys, but it's nice to have no instability.

oh..... sweet!!!! its like im doing a stability test on each freqs:voltages and see what's most stable for me....my deepest, deepest thanks :)

hawaii 2011-04-17 15:29

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Works like a charm. Thanks for this addition.

RobbieThe1st 2011-04-18 00:26

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Jan 28th(v0.61)
 
Quote:

Originally Posted by gabby131 (Post 990490)
oh..... sweet!!!! its like im doing a stability test on each freqs:voltages and see what's most stable for me....my deepest, deepest thanks :)

That's /exactly/ what you're doing.

Schturman 2011-04-18 05:38

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Hi Robbi
Do you have the wiki with full explanation of the function of backup menu and instruction of installation and unninstalation? I don't find this...
Thanks

Bratag 2011-04-18 07:11

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Robbi. I love your app but for some reason the only items I am getting is a totally white screen with the options of

1) Boot from flash
2) Power down.

I also have the option to start ssh networking and usb hostmode.

Not what I was used to seeing.

RobbieThe1st 2011-04-18 08:47

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Quote:

Originally Posted by Schturman (Post 990821)
Hi Robbi
Do you have the wiki with full explanation of the function of backup menu and instruction of installation and unninstalation? I don't find this...
Thanks

Nope. What self-respecting coder likes doing documentation? ;)

At some point I might do it, but meh. I fully intend to procrastinate as much as I can on this.

Quote:

Originally Posted by Bratag (Post 990868)
Robbi. I love your app but for some reason the only items I am getting is a totally white screen with the options of

1) Boot from flash
2) Power down.

I also have the option to start ssh networking and usb hostmode.

Not what I was used to seeing.

Means it's not installed right for some reason. Try the reinstall instructions from the first post.

edit:
Hey guys, need a bit of help again - Anyone know a command for launching a new MicroB(stock browser) window with a certain URL?
I've got an idea for a new-feature/changelog display...

zoneee 2011-04-18 16:21

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
@Bratag:
Backupmenu refused to work when I made a symlink to gnu find instead of busybox. I copied find instead of symlinking it and it started working again. Did you by any chance install the gnu find package?

zoneee 2011-04-18 17:52

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
I just did a:
  • rootfs+optfs to eMMC using backupmenu-0.65.
  • flashed stock RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin
  • booted and verified if everything was wiped out
  • created a flashable rootfs image from the above rootfs backup using mtd-utils
  • extracted the contents of the kernel-power deb by
    Code:

    dpkg -x kernel-power_2.6.28-maemo46_armel.deb
  • unpacked the zImage from it using
    Code:

    flasher-3.5 -u -F zImage-2.6.28-maemo46.fiasco
  • USB Flashed using
    Code:

    flasher-3.5 -r backupmenu-rootfs.img  -k zImage -f -R
  • Restored optfs from above eMMC backup and Im back to where I leftoff in less than 10mins.

w00t! Very cool stuff! :D Thank you Rob!

PS: I manually downloaded and upgraded my mtd-tools_20100706-1_amd64.deb to mtd-utils_20110107-1_amd64.deb from the Natty repo on my Ubuntu 10.10 before creating the rootfs img.

hawaii 2011-04-18 20:03

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
To launch a new microb window with a specified URL use;

dbus-send --system --type=method_call --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"www.google.ca/firefox"

RobbieThe1st 2011-04-20 01:32

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
Works great!
Thanks.

m willberg 2011-04-24 23:02

Re: [Announce] BackupMenu V2 - OS backup & restore | New version - Apr 17th(v0.65)
 
I do believe that there is a flaw in the password support. It is not possible to enter the boot menu if root's password is longer than 8 characters. The same password works just fine when logging in using ssh.


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

vBulletin® Version 3.8.8