Backup for OS OVM6

    • Official Post

    It does seem easy enough to setup, but I am curious about the restore process. What is the process?

    I think this is getting discussed in 2 separate places...


    Like with all things Linux, there's plenty of ways to skin this cat. I just use dd and then use balena to restore the images.


  • I installed the backup plugin and want to backup ONLY the OS system disk not my shared folders - I don't see the option of the OS system disk to backup. I only see my shared folders. How do we backup and restore ONLY the boot SYS disk?

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

  • I installed the backup plugin and want to backup ONLY the OS system disk not my shared folders -

    It is my understanding that dd command in Backup Plugin is for OS backup only. I use "dd full disk" to backup mine.


    (EDIT: First you need to create a shared folder to backup your OS/Boot files and then choose this folder as "Location of the backup files". ( I named mine "OSBackup') Then you need to choose the "dd" or "dd full disk" Method. Then hit the save button. Wait for changes to be made. Then hit the backup button. Soon you will see your backed up files in the shared folder you just created for this purpose. )


    and these are the files that show up in my shared folder:

    OMV 7.4.9-2 (Sandworm) on ASROCK B560M-ITX/ac Motherboard, 16GB DDR4 RAM, Intel Pentium Gold 6405 CPU, Silverstone ECS06 6 Ports SATA Gen3x2 (6Gbps) Non-RAID PCI-e card, 7(2Parity+5Data) Toshiba 2.5 inch Laptop SATA HDD's 1TB each for Data, SnapRaid with MergerFS plugin, Kingston USB-3 Data Traveler Exodia DTX/32 GB Pen Drive for Root/OS, 128GB SATA SSD for use by DOCKER and spare 128 GB PCIE M.2 SSD. Motherboard has 4 native SATA ports and 1 M.2 PCIE port. SilverStone Sugo SG13 Case.

    Edited 2 times, last by NsinghP ().

  • Thanks for showing it - I am not getting that OS option populated - i get only my shared folders

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

    • Official Post

    I installed the backup plugin and want to backup ONLY the OS system disk not my shared folders - I don't see the option of the OS system disk to backup. I only see my shared folders. How do we backup and restore ONLY the boot SYS disk?

    Not sure if you were referencing me, but correct. The shared folder is just where you save the image.

  • I am not getting that OS option populated - i get only my shared folders

    First you need to create a shared folder to backup your OS/Boot files and then choose this folder as "Location of the backup files". ( I named mine "OSBackup') Then you need to choose the "dd" or "dd full disk" Method. Then hit the save button. Wait for changes to be made. Then hit the backup button. Soon you will see your backed up files in the shared folder you just created for this purpose. )

    OMV 7.4.9-2 (Sandworm) on ASROCK B560M-ITX/ac Motherboard, 16GB DDR4 RAM, Intel Pentium Gold 6405 CPU, Silverstone ECS06 6 Ports SATA Gen3x2 (6Gbps) Non-RAID PCI-e card, 7(2Parity+5Data) Toshiba 2.5 inch Laptop SATA HDD's 1TB each for Data, SnapRaid with MergerFS plugin, Kingston USB-3 Data Traveler Exodia DTX/32 GB Pen Drive for Root/OS, 128GB SATA SSD for use by DOCKER and spare 128 GB PCIE M.2 SSD. Motherboard has 4 native SATA ports and 1 M.2 PCIE port. SilverStone Sugo SG13 Case.

  • OK. Thanks

    I am not thinking of backing up the OS on the shared system folder but to my local drive - I only want to back up the ONLY the OS configuration and not the entire OS drive...
    if the system dies then I lose those backups. Is there a way to backup directly to my local drive and restore it back from there?

    Edited:
    I created a backup folder and share it and give permission etc. and tried to execute the backup process but I get an alert 500 error message. I wonder what am I doing wrong?
    I missed a step in the config - I forget to save first... It's working.
    Thanks and sorry for mistake

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

    Edited 2 times, last by Netfreak: follow up step and unfisnhed step ().

  • I used only the DD option to back up ONLY the OS part of my boot drive. It looks like it's taking a very long time to backup ONLY the maximum of 8gb of the boot system disk. My current boot disk capacity is a 500gb laptop disk. I am monitoring the backup of my OS backup shared folder and I can see that the xxxxdd.gz files is growing after 45 minutes and counting... I wanna think that cloning the entire disk might be faster? Any thoughts on this?

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

    • Official Post

    I wanna think that cloning the entire disk might be faster?

    How? It is just using a dd command to backup the main OS partition when you pick DD and the OS drive when you pick DDFULL. Unless you changed the root device line...

    omv 8.0.8-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I didn't change or type in anything... they are all valid options I took. Select my backup, shared folder, selected dd option and hit backup.
    It was still counting after 90 min I decided to shut the system down...

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

  • It was still counting after 90 min I decided to shut the system down...

    How big is your boot drive? ( EDIT, NOTE: It is my experience that both "dd" and "full" backup the entire size of the drive. When i was using 128GB SSD as boot device my backup operation ended only after 128Gb was written. Then I switched to 32Gb pen drive for OS and my backups was faster and ended at 32gb.)

    OMV 7.4.9-2 (Sandworm) on ASROCK B560M-ITX/ac Motherboard, 16GB DDR4 RAM, Intel Pentium Gold 6405 CPU, Silverstone ECS06 6 Ports SATA Gen3x2 (6Gbps) Non-RAID PCI-e card, 7(2Parity+5Data) Toshiba 2.5 inch Laptop SATA HDD's 1TB each for Data, SnapRaid with MergerFS plugin, Kingston USB-3 Data Traveler Exodia DTX/32 GB Pen Drive for Root/OS, 128GB SATA SSD for use by DOCKER and spare 128 GB PCIE M.2 SSD. Motherboard has 4 native SATA ports and 1 M.2 PCIE port. SilverStone Sugo SG13 Case.

    Edited 2 times, last by NsinghP ().

    • Official Post

    I didn't change or type in anything... they are all valid options I took. Select my backup, shared folder, selected dd option and hit backup.
    It was still counting after 90 min I decided to shut the system down...

    Output from the backup? All I can do is guess without it. You can run sudo /usr/sbin/omv-backup from the command line too.

    omv 8.0.8-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • How big is your boot drive? ( EDIT, NOTE: It is my experience that both "dd" and "full" backup the entire size of the drive. When i was using 128GB SSD as boot device my backup operation ended only after 128Gb was written. Then I switched to 32Gb pen drive for OS and my backups was faster and ended at 32gb.)

    That's good to know... Thanks. How long did it take to backup your 128gb OS drive. My OMV OS boot disk is a laptop 500gb disk capacity. I locked the system down after about 90 minutes , it was not finished this is the output after about that 90 minutes zie screeshot

    Images

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

  • Output from the backup? All I can do is guess without it. You can run sudo /usr/sbin/omv-backup from the command line too.

    What will this "sudo /usr/sbin/omv-backup" line do exactly? backup only the 8gb OS SYS or the entire boot disk? and where will the backup files going?

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

    • Official Post

    What will this "sudo /usr/sbin/omv-backup" line do exactly?

    The same thing that the Backup button in the plugin and cronjob do. It is the heart of the plugin that does the backup work. It has no arguments because it reads from the OMV database. Read the script if you want to know more.

    backup only the 8gb OS SYS or the entire boot disk?

    It does whatever you have the plugin set for.

    and where will the backup files going?

    Do you think I would give you a command that would backup random things to a random location?

    omv 8.0.8-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.4 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • How big is your boot drive? ( EDIT, NOTE: It is my experience that both "dd" and "full" backup the entire size of the drive. When i was using 128GB SSD as boot device my backup operation ended only after 128Gb was written. Then I switched to 32Gb pen drive for OS and my backups was faster and ended at 32gb.)

    NsinghP when last was your experience? I still have no clue what's going on with the backup of ONLY the OS sys disk and not the entire boot disk space. Is there is step by step tutorial on this?

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

  • NsinghP when last was your experience? I still have no clue what's going on with the backup of ONLY the OS sys disk and not the entire boot disk space. Is there is step by step tutorial on this?

    I don't think you understand what dd does. dd creates an image of the entire source it is given, regardless of how much space on that source is used or unused.


    Exactly what does this mean? "backup of ONLY the OS sys disk and not the entire boot disk space."

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • NsinghP when last was your experience? I still have no clue what's going on with the backup of ONLY the OS sys disk and not the entire boot disk space. Is there is step by step tutorial on this?

    Last couple of times that I have run either the "dd" or "dd full disk" command on my server it has proceded to backup the entire capacity of my System Disk. (I'm not sure, but it may have something to do with how the disk is partitioned. If the entire disk is one partition then it makes sense to me that both "dd" and "dd full disk" will backup the entire capacity of the disk. OMV Gurus here will know more on this.) Here are the screenshots from my use of "dd" command just now: (It took my system 9 Minutes to backup 32Gb boot Pen drive)


    And here is the screen shot of "dd full disk" method: ( It took my system 10 Minutes, and this time it wrote 31Gb as opposed to 29Gb of "dd' Method)

    OMV 7.4.9-2 (Sandworm) on ASROCK B560M-ITX/ac Motherboard, 16GB DDR4 RAM, Intel Pentium Gold 6405 CPU, Silverstone ECS06 6 Ports SATA Gen3x2 (6Gbps) Non-RAID PCI-e card, 7(2Parity+5Data) Toshiba 2.5 inch Laptop SATA HDD's 1TB each for Data, SnapRaid with MergerFS plugin, Kingston USB-3 Data Traveler Exodia DTX/32 GB Pen Drive for Root/OS, 128GB SATA SSD for use by DOCKER and spare 128 GB PCIE M.2 SSD. Motherboard has 4 native SATA ports and 1 M.2 PCIE port. SilverStone Sugo SG13 Case.

    Edited once, last by NsinghP ().

  • I don't think you understand what dd does. dd creates an image of the entire source it is given, regardless of how much space on that source is used or unused.


    Exactly what does this mean? "backup of ONLY the OS sys disk and not the entire boot disk space."

    OMV says the OS sys disk space is about 8gb and if I have a capacity of 500gb boot disk then that means I have about 492 gb extra free disk space.
    I was wondering how to backup ONLY that 8gb of the OMB OS space and not the remaining 492gb.
    If I understand you correct "DD" or "DD full disk" does the same as NsinghP explains? If yes, then I wonder why the options

    There are, sometimes, many ways to do things/tasks, and experience with them will lead you to take the one you feel comfortable with.
    My test drives are on 2 machines both OMV with ZFS and with a 500gb laptop SYS BOOT HDD
    1. i7 920 with 12gb ram; 4x2tb sata WD purple
    2. ibm x3100 m4; 32gb ram; 4x6tb sas Seagate

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!