PINE64
Creating bootable Debian backup image - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=1)
+--- Forum: Getting Started (https://forum.pine64.org/forumdisplay.php?fid=21)
+--- Thread: Creating bootable Debian backup image (/showthread.php?tid=6483)



Creating bootable Debian backup image - Drago - 08-31-2018

Hi all,

I'd like to periodically create backup images of Debian (stretch-minimal-rockpro64-0.7.9-1067) because I end up breaking my system a lot (I am a brand new to Linux). How would I go about doing this? Could I take an image of my microSD while it's connected to my macbook pro, or do I have to do this from the Debian command line?

-D


RE: Creating bootable Debian backup image - evilbunny - 08-31-2018

(08-31-2018, 03:01 PM)Drago Wrote: Hi all,

I'd like to periodically create backup images of Debian (stretch-minimal-rockpro64-0.7.9-1067) because I end up breaking my system a lot (I am a brand new to Linux). How would I go about doing this? Could I take an image of my microSD while it's connected to my macbook pro, or do I have to do this from the Debian command line?

-D


If you want offline backups you can just use dd to clone the image, if you want backups while it's running you'll need something like rsnapshot which can take incremental backups.


RE: Creating bootable Debian backup image - semeral - 12-11-2018

(08-31-2018, 05:37 PM)evilbunny Wrote:
(08-31-2018, 03:01 PM)Drago Wrote: Hi all,

I'd like to periodically create backup images of Debian (stretch-minimal-rockpro64-0.7.9-1067) because I end up breaking my system a lot (I am a brand new to Linux). How would I go about doing this? Could I take an image of my microSD while it's connected to my macbook pro, or do I have to do this from the Debian command line?

-D


If you want offline backups you can just use dd to clone the image, if you want backups while it's running you'll need something like rsnapshot which can take incremental backups.

I'm booting from eMMC, so while using dd backup, do I do just dd if=/dev/mmcblk1 [...] or should I also backup /dev/mmcblk1boot0 and /dev/mmcblk1boot1?


RE: Creating bootable Debian backup image - evilbunny - 12-11-2018

(12-11-2018, 02:14 PM)semeral Wrote:
(08-31-2018, 05:37 PM)evilbunny Wrote:
(08-31-2018, 03:01 PM)Drago Wrote: Hi all,

I'd like to periodically create backup images of Debian (stretch-minimal-rockpro64-0.7.9-1067) because I end up breaking my system a lot (I am a brand new to Linux). How would I go about doing this? Could I take an image of my microSD while it's connected to my macbook pro, or do I have to do this from the Debian command line?

-D


If you want offline backups you can just use dd to clone the image, if you want backups while it's running you'll need something like rsnapshot which can take incremental backups.

I'm booting from eMMC, so while using dd backup, do I do just dd if=/dev/mmcblk1 [...] or should I also backup /dev/mmcblk1boot0 and /dev/mmcblk1boot1?


You only need to dd the device. That will backup everything including the partition table.