Montag, 29. Dezember 2014
complete Backup of Jolla
The Jolla Phone has several interesting partitions:

/dev/mmcblk0p19 on /drm type ext4
/dev/mmcblk0p18 on /firmware type vfat
/dev/mmcblk0p25 on /persist type ext4
/dev/mmcblk0p9 on /var/systemlog type ext4
/dev/fuse on /home/nemo/android_storage type fuse
/dev/mmcblk0p28 on / type btrfs
/dev/mmcblk0p28 on /home type btrfs


btrfs has snapshot support, so we use it.
Then all filesystems are tared and zipped and ssh'ed to a backup-host as follows:

btrfs subvolume snapshot -r / /snapshots/root
btrfs subvolume snapshot -r /home/ /snapshots/home

tar -cpz /drm/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_drm.tar.gz )"
tar -cpz /firmware/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_firmware.tar.gz )"
tar -cpz /persist/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_persist.tar.gz )"
tar -cpz /var/systemlog/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_systemlog.tar.gz )"
tar -cpz /home/nemo/android_storage/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_android_storage.tar.gz )"

tar -cpz /snapshots/root/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_root.tar.gz )"
tar -cpz /snapshots/home/ | ssh markus@192.168.1.12 "( cat > Jolla_backup/`date +%y%m%d`_home.tar.gz )"

btrfs subvolume delete /snapshots/home/ /snapshots/root/

after were finished the snapshots are deleted and were fine.

... link (0 Kommentare)   ... comment