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.

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

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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.

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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?

  • On the Odroid I get the following error message:


  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

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

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

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