hi all
I'm wondering if there is some way to backup the internal 64gb emmc to an sdcard
Raspberry pie uses a little app called SD card copier it would be nice if there is something like this for the pinebook pro
its very useful if we f*ck up the system just to restore it from the sd card would be amazing
and time consuming just copy back everything with all settings and stuff
hopefully somebody will come up with something
of can be a file which gives
dd if=(input device) of=save.img
so you can back up to any drive.
The image will be the size of the eemc
Err, you could cd to where you want the backup to be stored
And,, viz size, why would you not pipe it thru gzip?
cd wherever; dd if=/dev/mmcblk1|gzip - > backup{date}
and restore,,, zcat backup |dd of=/dev/mmcblk1 bs=1M
01-19-2020, 11:20 AM
(This post was last modified: 01-19-2020, 11:22 AM by Der Geist der Maschine.)
The running system creates files on the fly such as /dev. A backup should not back up such files.
It's better to create the backup from a system booted off micro SD card. From there you can use dd or dd | gzip the emmc card and store it on an external usb drive or scp it over the network.
Before you create the backup, it's advised to first create and then delete a huge file on the emmc card consisting of zeros (dd if=/dev/zero of=zeros) so that gzip can nicely compress the dd'ed image.
thanks to everyone it would be nice if somebody made a tutorial for that (so other new users like me benefit from it)
01-19-2020, 04:26 PM
(This post was last modified: 01-19-2020, 09:58 PM by Arwen.
Edit Reason: Fixed my mis-spelling
)
Yes, a tutorial would be nice.
Using "dd" is less than ideal for backups. Meaning if you backup your 64GB eMMC and decide to restore it to a SD card, the card MUST be at least 64GB. And in some cases that I have experienced with SATA DOMs, you may have to go up 1 size. (Imagine trying to restore 64GBs to a 63.999GB SD card that calls it's self 64GB.)
I tend to use more advanced, and flexible methods of backup, (Rsync, EXT4 dump, etc...). But, those tend to be more complex that the simple example of "dd".
--
Arwen Evenstar
Princess of Rivendale
yep dd take me around 4 hours to make a backup