Notices


Reply
Thread Tools
Posts: 8 | Thanked: 0 times | Joined on Apr 2008
#21
Originally Posted by maacruz View Post
Nothing practical??
How about dd, for fat and ext2/3 partitions?
Or tar, for everything?
And mkfs.jffs2?
Put everything together in a script, boot from mmc, and there you have your full backup imaging (flasheable) sollution.
I do not have a N900, but I do it routinely in my N810
I'm with Corso85 on the request for your script you use routinely. I realize this is somewhat off-topic as I own an N800 (which may make it easier?). As my solution, I was making partial backups of some of the top-level directories and 'tar'ing them to an NFS-mounted filesystem on a Linux box.

I never bothered to check if the tar files could be successfully untarred, until I had an unfortunate incident where my N800 was stolen . I bought a new n800 and started from the "ground up". When I untarred my /home tar file on my linux box (to copy the user directory), I was greeted with the "unexpected EOF" message from tar and was not able to use most of my "backups".

Therefore, I'd like to make occasional copies of what's on the N800, save them to an SD card, and then copy the contents of the card to my Linux box for safekeeping.

Would your scripts accomplish this for me?

Thanks in advance!
 
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#22
I have a N810, I have no idea if any of this works in the N900 (binaries may not work, partitions may be named differently and it is sure there are different partitions and mount points).
You'll need mtd-utils, lets suposse you have put them in /usr/local/sbin so they can be found in the PATH (just untar the attached file in /).
This must be run as root
To make a backup image (you can call it backup.sh):
Code:
#!/bin/sh
mount --bind / /floppy
mkfs.jffs2 -r /floppy -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
umount /floppy
That is.
You can flash this image from your PC with flasher-3.0:
Code:
flasher-3.0 -f -r rootfs.jffs2
Or boot from mmc and use nandwrite (mtd-utils must be installed in your mmc bootable partition too):
Code:
flash_eraseall -j /dev/mtd4
nandwrite -a -p /dev/mtd4 /media/mmc1/rootfs.jffs2
-----
Another, simpler way to make the image
Download 0xFFFF for the tablet: http://talk.maemo.org/attachment.php...5&d=1273648564
Make a firmware dump:
Code:
mkdir /media/mmc1/firmware
0xFFFF.static -e /media/mmc1/firmware
0XFFFF.static can be used to flash the root partition, too (remember, booting from mmc):
Code:
0xFFFF.static -R -p rootfs.jffs2
Attached Files
File Type: gz mtd-utils.tar.gz (38.2 KB, 79 views)

Last edited by maacruz; 2010-05-13 at 18:33.
 
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#23
Hi Slasher,

Originally Posted by Slasher View Post
# Please remove the -n switch after testing the script. With -n, no copying is actually done
rsync -avzn --delete \
--exclude /proc/'*' \
--exclude /sys/'*' \
--exclude /syspart/'*' \
--exclude /dev/'*' \
--exclude /tmp/'*' \
--exclude /var/tmp/'*' \
root@192.168.1.90:/ n900_backup/
I'm doing my backup the same way (as described in the wiki).
Basically you want a "--numeric-ids" with that to make the backup preserve the correct ownership of non-root files.

I also added this add the top of my backup script:
Code:
if [ `whoami` != "root" ]; then
  echo "Please run as root to preserve file ownership."
  exit 1
fi
Cheers,
Thomas
 
Posts: 19 | Thanked: 11 times | Joined on Jul 2010
#24
hi, I am working on a full backup system, I am planning to use rdiff-backup to full backup to my NAS. Now, is there someone that has experience triggering scripts on hal?,
the idea is to run the script when is connected to the charger. There are some interesting listings , lshal | grep 'maemo\.charger'

Best Regards

Juan.-
 
2disbetter's Avatar
Posts: 365 | Thanked: 98 times | Joined on Nov 2009
#25
Doesn't the backmeup app do this? It creates a backup of your rootfs and optfs. It does this when rebooting your phone, before the OS loads so that it can access the rootfs partition.

Check it out. Should be in this forum as well.

2d

Last edited by 2disbetter; 2010-08-23 at 07:14.
 
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#26
You can find more about BackupMenu here.
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:03.