Re: Backing up an image...

2007-09-14 Thread Eero Tamminen
Hi,

ext James Sparenberg wrote:
 On Thursday 13 September 2007 00:16:14 Thomas Leavitt wrote:
 So, like, when my box locked up (for no particular reason I could tell)
 and I had to wipe and re-install, three days after I got the thing, it
 wasn't that big a deal... just a few wasted hours... but now, I've got a
 substantial investment in it... how do I back this thing up, so I can
 re-flash it to where it is now, in case something breaks in the future
 and bricks it?
...
 -- . Went to Control Panel/Backup and made full backup.
 2. Copied some files(in particular Maemopad+ database) which were in root 
 directory for some reason to my mmc1 card.
 3. Saved list of installed applications to the mmc1 card by running dpkg –
 get-selections  /media/mmc1/soft.txt
 4. Flashed new firmware (flashing guide is here: 
 http://internet-tablet.com/main/pereproshivaem-n800-ustanavlivaem-os-2007/)
 5. During first boot Installation Wizard recognized backup on my card and 
 proposed to restore it. I couldn't refuse that :)
 6. Install xterm(http://maemo-hackers.org/osso-xterm.install) and 
 becomeroot(http://eko.one.pl/maemo/dists/bora/user/binary-armel/becomeroot_0.1-2_armel.deb)

Instead of gainroot  installing xterm I would install ssh, copy my
public key to the device and disable password logins.  It's much nicer
then to do these command line operations with the desktop machine
keyboard. :-)


 7. Open xterm window, become root: $sudo gainroot and change default root 
 password: #passwd
 8. Get our saved list of installed software from the place we put it before: 
 #dpkg –set-selections  /media/mmc1/soft.txt
 9. Upgrade according to the selected list: #apt-get dselect-upgrade
 10.Application manager displays list of packages to upgrade and asks for my 
 permission: Yes!
 11.Packages got loaded in a couple of minutes and installation begins.
Sometimes licence agreement windows pop up. I agree :)
 12.When application installer finished its work (no error messages!) I looked 
 at the menu - all software have been installed successfully except of that 
 which was installed not from repositories.


- Eero
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Backing up an image...

2007-09-13 Thread Frantisek Dufka
Thomas Leavitt wrote:
 So, like, when my box locked up (for no particular reason I could tell) 
 and I had to wipe and re-install, three days after I got the thing, it 
 wasn't that big a deal... just a few wasted hours... but now, I've got a 
 substantial investment in it... how do I back this thing up, so I can 
 re-flash it to where it is now, in case something breaks in the future 
 and bricks it?
 

Hi Thomas,

so far many of your your questions to the list seems to me like this one
http://catb.org/~esr/faqs/smart-questions.html#id271908

Please try to use mailing list search before firing questions
Searchable archive is here http://www.gossamer-threads.com/lists/maemo/
You may also try search whole maemo site - www.maemo.org (search box in 
upper right corner) and forum at http://www.internettablettalk.com/

For recovery I'd suggest setting up booting from mmc and backing up via tar.

Frantisek
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Backing up an image...

2007-09-13 Thread Tilman Vogel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yes, boot from MMC.

I use the method from

http://www.sanitarium.net/golug/rsync_backups.html

for incremental backups. Don't forget to mount your rootfs to a second
place because of all the mounts that might hide parts of it. Works like
a charm with this script which must be run as root in order to preserve
user ids:

#!/bin/bash
PREVIOUS=`readlink current`
NEW=`date --iso-8601=sec`
OPTIONS=-PavH --numeric-ids --delete

echo new backup tag is $NEW

if [ ! $PREVIOUS ]; then
echo previous backup not found, starting fresh
else
echo making incremental backup based on $PREVIOUS
cp -al $PREVIOUS $NEW
fi

if ! ssh [EMAIL PROTECTED] mkdir /tmp/backup-mnt ; mount /dev/mmcblk0p2
/tmp/backup-mnt; then
echo Could not mount /dev/mmcblk0p2 /tmp/backup-mnt
exit 1
fi

echo rsync $OPTIONS [EMAIL PROTECTED]:/tmp/backup-mnt/ ./$NEW

if rsync $OPTIONS [EMAIL PROTECTED]:/tmp/backup-mnt/ ./$NEW; then
ln -snf $NEW current
fi

ssh [EMAIL PROTECTED] umount /tmp/backup-mnt  rmdir /tmp/backup-mnt

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFG6P2t9ZPu6Yae8lkRAm40AJ9qcyGPIIh8yNIBHHm3BnazBu6sQwCeOFTf
XOyKuTqq/lCCm5Y1B+owNlY=
=FG2H
-END PGP SIGNATURE-
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Backing up an image...

2007-09-13 Thread Frantisek Dufka
Just beware that rsync does not replicate every peculiarity of the 
filesystem so you may be surprised by buggy software. Check this one 
https://maemo.org/bugzilla/show_bug.cgi?id=838

Frantisek
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: Backing up an image...

2007-09-13 Thread James Sparenberg
On Thursday 13 September 2007 00:16:14 Thomas Leavitt wrote:
 So, like, when my box locked up (for no particular reason I could tell)
 and I had to wipe and re-install, three days after I got the thing, it
 wasn't that big a deal... just a few wasted hours... but now, I've got a
 substantial investment in it... how do I back this thing up, so I can
 re-flash it to where it is now, in case something breaks in the future
 and bricks it?

 Thomas
 ___
 maemo-users mailing list
 maemo-users@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-users


This performs better with OS2007 than 2006 but works in both for me YMMV (I 
use this primarily on my n800 but also on the 770)  


-- . Went to Control Panel/Backup and made full backup.
2. Copied some files(in particular Maemopad+ database) which were in root 
directory for some reason to my mmc1 card.
3. Saved list of installed applications to the mmc1 card by running dpkg –
get-selections  /media/mmc1/soft.txt
4. Flashed new firmware (flashing guide is here: 
http://internet-tablet.com/main/pereproshivaem-n800-ustanavlivaem-os-2007/)
5. During first boot Installation Wizard recognized backup on my card and 
proposed to restore it. I couldn't refuse that :)
6. Install xterm(http://maemo-hackers.org/osso-xterm.install) and 
becomeroot(http://eko.one.pl/maemo/dists/bora/user/binary-armel/becomeroot_0.1-2_armel.deb)
7. Open xterm window, become root: $sudo gainroot and change default root 
password: #passwd
8. Get our saved list of installed software from the place we put it before: 
#dpkg –set-selections  /media/mmc1/soft.txt
9. Upgrade according to the selected list: #apt-get dselect-upgrade
10.Application manager displays list of packages to upgrade and asks for my 
permission: Yes!
11.Packages got loaded in a couple of minutes and installation begins.
   Sometimes licence agreement windows pop up. I agree :)
12.When application installer finished its work (no error messages!) I looked 
at the menu - all software have been installed successfully except of that 
which was installed not from repositories.
___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users