DBwpg Posted December 4, 2020 Posted December 4, 2020 Was wondering if there is a utility similar to the Khadas Krescue boot utility that allows one to backup/install emcc images?? I found it very useful to backup my Khadas images as well as installing different os. The description is as follows: 'Krescue is an extremely small (21mb) operating system that you can boot directly from a micro-SD card or your EMMC. It is a “Swiss Army knife”, and you can use it to perform a variety of low-level SBC maintenance tasks. Most notable of which are backing-up your EMMC by dumping a raw-compressed .img.gz, and rapidly installing a new OS via flashing a .img.gz back into the EMMC. Krescue can download and install OS images directly from the web via wired Ethernet.' I've finally got my Heliios64 about 2 weeks ago and have it setup to the point I believe its ready for primetime but would like to ensure I have an easy way to backup/restore my emcc image. Any thoughts? 0 Quote
Igor Posted December 4, 2020 Posted December 4, 2020 1 hour ago, DBwpg said: Any thoughts? Anything is possible if you finance R&D. Since public support into that direction don't (reach 1%), that is not possible to think about. If you are going to code it and maintain, welcome. We are full for years to come. Moving to https://forum.armbian.com/forum/38-feature-requests/ 0 Quote
TRS-80 Posted December 4, 2020 Posted December 4, 2020 (edited) I cannot help but wonder that there is some simple way to do this with existing low level tools already (i.e., dd, etc.)? Edited December 4, 2020 by TRS-80 remove nonsense 0 Quote
ebin-dev Posted December 7, 2020 Posted December 7, 2020 I am using the following modified version of an Armbian Script to rsync emmc to sd (replace UUIDs to match yours): # cat backuptosd.sh #!/bin/bash # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script." exit 1 fi cat > install-exclude <<EOF /dev/* /proc/* /sys/* /media/data1/* /media/data2/* /media/data3/* /media/data4/* /media/data5/* /mnt/sd/* /mnt/ssd/* /mnt/usb/* /mnt/hd/* /run/* # /tmp/* # /root/* EOF exec 2>/dev/null umount /mnt/sd exec 2>&1 mount /dev/mmcblk0p1 /mnt/sd rsync -avxSE --delete --exclude-from="install-exclude" / /mnt/sd # change fstab sed -e 's/UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx3c/UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx2d/g' -i /mnt/sd/etc/fstab sed -e 's/UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx3c/UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx2d/g' -i /mnt/sd/boot/armbianEnv.txt umount /mnt/sd rm install-exclude 2 Quote
Whoo Posted January 8, 2023 Posted January 8, 2023 I would be glad if backup tool was added. Something that allows making backups from EMMC or SD card to USB drive or to SD card that will make image and compress it to the lowest possible size. And then option to restore backup 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.