aktos-io / dcs-tools

Tools for making remote Linux node management easy
42 stars 6 forks source link

trouble making bootable backup from sync-root #16

Closed motioncircus closed 6 years ago

motioncircus commented 6 years ago

Hi Cerem, I've succeded with both an initial and incremental backup of my RaspberryPiZeroW and now I'm looking to make that backup into a bootable SD card image.

Here's what I get when I try to make the backup

root@raspberrypi:/media/pi/PiStore/remote-machines/zero1# ./dcs-tools/make-backu p --source sync-root/ --backups bootable_backups/ --method hardlinks Enter Comment : First_attempt_Zero_01 Creating backup with the following name: 20171119T0844-First_attempt_Zero_01 Using hardlinks method ERROR: ERROR: ERROR: FIXME: invalid cross-device link error on btrfs filesystem. Below code is still tested well. ERROR: ERROR:

This is on a Raspberry Pi B+ running the latest version of Raspbian PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/"

Thanks in advance for your consideration Nigel

ceremcem commented 6 years ago

Hi Nigel,

Making backups from sync root is a completely different process from making a bootable backup. So, considering the title, make-backup is unrelated with this process.

What do you get when you use produce-bootable-disk? For usage help, you can run it without an argument or with --help argument.

(Note: Please use fenced blocks for codes)

motioncircus commented 6 years ago

Oh, ok.. thanks for your swift reply mate!

when I run '''produce-bootable-disk''' I get

'''bash: produce-bootable-disk: command not found'''

ceremcem commented 6 years ago

Please try ./dcs-tools/produce-bootable-disk as it resides under the dcs-tools directory.

(Note: It's triple backticks: ```, not triple single quote.)

motioncircus commented 6 years ago

Ok I see the command now... when I run it it asks for a --device to format and create bootable disk Do I need to have a second, ready to write, SD card ready, perhaps in a USB card reader? I expected this command to produce an image file that I could copy to my windows box and burn to SD

ceremcem commented 6 years ago

Nope, this command directly formats the SD card and transfers the root file system to the newly created partitions. So obviously you need a different SD card than your current Raspberry has.

A BIG WARNING

You may destroy all of your data, and you may never be able to reach them again, ever. So make your backups properly, do not involve any valuable files in this process until you learn how to use these kind of tools

END OF BIG WARNING

motioncircus commented 6 years ago

Ok, So obviously I have to have two SD cards in the machine at the time.. the one running the OS, where then dcs-tools directory and the sync root is AND another SD card to format and write the backed up files to. N

On 19 Nov 2017 10:02, "Cerem Cem ASLAN" notifications@github.com wrote:

Nope, this command directly formats the SD card and transfers the root file system to the newly created partitions. So obviously you need a different SD card than your current Raspberry has. A BIG WARNING

You may destroy all of your data, and you may never be able to reach them again, ever. So make your backups properly, do not involve any valuable files in this process until you learn how to use these kind of tools END OF BIG WARNING

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aktos-io/dcs-tools/issues/16#issuecomment-345477915, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQ3E7Z_WfjGmBysGSQhjifvvJmzrq2Tks5s32IbgaJpZM4QjKZG .