-----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

Reply via email to