How to restore from an omv-backup?

  • I'm preparing to upgrade to OMV 4 so I made a backup of OMV via the openmediavault-backup 3.11 plugin. If I need to do a restore, what is the process? I see the backup folder that was created but I'm not sure what I'm supposed to do with it if I need to use it.


    The plugins I'm currently using are omvextrasorgs, omv-backup, snapraid, and union file system. Not sure if that has an impact or not.

    • Offizieller Beitrag

    It isn't easy with the OMV 3.x version of the plugin. You really should make a backup with clonezilla.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Ok, I will backup with clonezilla. Thanks for the advice.

    Once you are on OMV 4.x, the plugin has an option to use fsarchiver for the backup. This is much easier to restore.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • What is the correct process for backing up via the plug in while running OMV 4.x ? I wasn't able to find any documentation and would be happy to create documentation once I figure out the correct process.

    • Offizieller Beitrag

    What is the correct process for backing up via the plug in while running OMV 4.x ?

    Have you installed the new version (4.0)? There is three methods of backing up. One is rsync which is the same as the 3.x version. I will have to write up something about the other two - fsarchiver and dd.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Here is a basic restore procedure using fsarchiver for the same hard drive but a change went bad:

    • Boot systemrescuecd - if you installed the iso from omv-extras, it will be in your grub menu.
    • Mount your data drive - example: mount /dev/sde1 /mnt/backup
    • Figure out where your backup file is. fsarchiver uses the .fsa extension - example: /mnt/backup/omvbackup/backup-omv-07-May-2018_10-36-31.fsa
    • Figure out what your OS drive root partiton is. Don't get this wrong! - example: /dev/sda1
    • Restore the files - example fsarchiver restfs /mnt/backup/omvbackup/backup-omv-07-May-2018_10-36-31.fsa dest=/dev/sda1
    • reboot

    Here is a basic restore procedure using dd for the same hard drive but a change went bad:

    • Boot systemrescuecd - if you installed the iso from omv-extras, it will be in your grub menu.
    • Mount your data drive - example: mount /dev/sde1 /mnt/backup
    • Figure out where your backup file is. dd uses the .dd.gz extension - example: /mnt/backup/omvbackup/backup-omv-07-May-2018_10-36-31.dd.gz
    • Figure out what your OS drive root partiton is. Don't get this wrong! - example: /dev/sda1
    • Restore the files - example gunzip -c /mnt/backup/omvbackup/backup-omv-07-May-2018_10-36-31.dd.gz | dd of=/dev/sda1 bs=1M status=progress
    • reboot

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Thanks a lot for integrating FSArchiver in OMV-backup.


    /mnt/backup/omvbackup/backup-omv-07-May-2018_10-36-31.fsa

    How about the other files that are created during backup?


    backup-omv-10-May-2018_15-16-52.blkid
    backup-omv-10-May-2018_15-16-52.fdisk
    backup-omv-10-May-2018_15-16-52.fsa
    backup-omv-10-May-2018_15-16-52.grub
    backup-omv-10-May-2018_15-16-52.grubparts
    backup-omv-10-May-2018_15-16-52.packages


    Will they be used internally?

    • Offizieller Beitrag

    On the Odroid I get the following error message:


    • Offizieller Beitrag

    On the Odroid I get the following error message:

    What filesystem is the root filesystem? I'm guessing btrfs?


    These are additional helpful outputs that might help advanced users during restore. The extension is pretty much what program created the output and saved it to a file. You can see how they are created here - https://github.com/OpenMediaVa…iavault/mkconf/backup#L68


    The grub and grub parts would be helpful if the os disk failed and you didn't want to manually create the partitions again. They are more important for the rsync style backup.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Yes, btfrs.

    OMV's builtin root device detection fails on btrfs and zfs. I will have to look into this.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    4.0.1 is in the testing repo. This should fix the issue with btrfs. zfs on root users are out of luck.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Is this "days" correct? Maybe it should be "Keep the last x backups"?

    Deleting based on time was easier than count. And most people aren't going to backup more than once per day. So, I stuck with days.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    My backup function doesn't look like that in 4.x. I still only see shared folder, root device, extra options. I don't have the option to change the Method. Am I using the wrong plugin?

    You need to enable the omv-extras testing repo.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    After enabling the testing repo, did you look in the Updates tab? If you did install it, you probably need to clear your browser cache.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!