How to make a backup of the system and all settings?

  • How to make a backup of the system and all settings?

    Should it be done?

    Because if you only have disks connected and MD RAID, even if something happens, you can easily mount it in another system.

    It's probably worse if you have add-ons like k8s for containers or OMV-extra compose for docker or kvm or others that need additional configuration.

    Because I think what we set in these containers stays there, so we can stop them and then turn them on and they will keep e.g. our password.

    I have data for compose (shared folder, data and backup) on the disk with the system, if that changes anything.

    Turn on OMV and connect Clonezilla to make copies?

  • I have been making an automated daily dd image of my OMV system disk since starting with OMV more than nine years ago.

    --
    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.

  • Can you give the command because when it finds it mainly copies it, i.e. sudo dd if=/dev/sda of=/dev/sdb

    Then add it to System->Scheduled Tasks?

  • Can you give the command because when it finds it mainly copies it, i.e. sudo dd if=/dev/sda of=/dev/sdb

    Then add it to System->Scheduled Tasks?

    Change of= to a filename, instead of a device.

    --
    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.

    • Official Post

    Can you give the command because when it finds it mainly copies it, i.e. sudo dd if=/dev/sda of=/dev/sdb

    Then add it to System->Scheduled Tasks?

    You can't copy the system disk to another disk and leave it plugged in. you will have multiple filesystems with the same uuid. If you want to backup to a file, just use the openmediavault-backup plugin and choose the ddfull option.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.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!

  • Change of= to a filename, instead of a device.

    For something like this dd if=/dev/sda of=/dev/backup ?



    Why are there tools like clonezilla when dd is built into every Linux and it can handle it and you don't have to turn on the machine to load the system?


    You can't copy the system disk to another disk and leave it plugged in. you will have multiple filesystems with the same uuid. If you want to backup to a file, just use the openmediavault-backup plugin and choose the ddfull option.

    In the backup plugin I can only select a shared folder.

    Should I share /?

    It's not, I don't know, not safe?

    In the shared folder, should I enter / in the relative path because I can't select from the list of existing folders?

  • The shared folder is the TARGET device for your backup.
    Example I use; Created a shared folder that pointed to a mounted filesystem (EXT4) on a removable drive called "/dev/sdbc1". Called the folder "OMVBACKUP".
    Then, in the plugin, I choose OMVBACKUP as the shared folder. I prefer fsarchiver as the method - but everyone can do as they wish. I set the schedule for once a day and to keep a month's worth (30 days) because I am making changes nearly every day.

    • Official Post

    Why are there tools like clonezilla when dd is built into every Linux and it can handle it and you don't have to turn on the machine to load the system?

    An offline backup is always better than an online backup. But an online backup is typically good enough for most people.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.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!

  • of=/dev/backup is incorrect. of=backup would be workable but vague. More useful would be this: of=omv-dd-backup.img


    I can't elaborate on things like the various backup plugins or Clonezilla other than to say I don't use them.

    --
    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.

  • DD doesn't copy sector by sector and doesn't know what free space is in the file system?

    So if we have a 1 TB disk where OMV has 30 GB, docker 10 GB and kvm 40 GB.

    So instead of making a copy of only 80 GB, will it make an image that will be 1 TB?

    Unless we make partitions, e.g. 200 GB for the whole thing, but I don't know if OMV has such an option in the installer (I haven't installed it for a long time), because Debian does.

    I know that you can do it from the console like everything else on Debian because that's where OMV is, but I wouldn't want to do it because I'd be afraid that it would mess something up and I'd have to set up OMV or Docker again.

  • dd copies the entire input device. That could be a drive, a partition, or a file. It knows nothing about free space.


    If you use dd to copy a partition of a bootable drive and use dd to restore that partition to blank media it will not be bootable because the boot track is not located within the partition, it's at the beginning of the disk outside of all partitions.


    The OMV iso installer makes two partitions on the install disk. One is for the entire system, the other is swap. The entire destination disk is used. If this isn't what you want then you can install a proper distribution of Debian to the disk and partition it the way you want it, then install OMV using the install script into Debian. But the limitations of using dd will remain. See:


    GitHub - OpenMediaVault-Plugin-Developers/installScript: script that installs omv-extras and openmediavault if not installed already.
    script that installs omv-extras and openmediavault if not installed already. - GitHub - OpenMediaVault-Plugin-Developers/installScript: script that installs…
    github.com


    The dd problems you are facing come with installing OMV to install to a disk that is tremendously larger than needed. Most users can get by with installing OMV to a disk that is 16GB. Users that need to add many packages to the basic install might be better served with a 32GB disk. If you are using Dockers and have the Docker storage path set to the default /var/lib/docker you are asking for problems if using a small OS disk.


    You can easily find 16 or 32GB USB flash drives or SSDs.


    So, what in your use case justifies installing OMV to a 1TB disk?

    --
    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.

    Edited once, last by gderf ().

    • Official Post

    DD doesn't copy sector by sector and doesn't know what free space is in the file system?

    dd copies byte by byte of the input source. Typically that is a disk or the partition. So, it doesn't care about what is in use. If you want to just copy what is in use, use clonezilla, fsarchiver, or rsync.

    Unless we make partitions, e.g. 200 GB for the whole thing, but I don't know if OMV has such an option in the installer (I haven't installed it for a long time), because Debian does.

    The idea of OMV is to not put data on the OS disk. Then you don't lose data if the OS disk fails. Using a 1TB disk for the OS is too big. If you ignore that, you can install debian with smaller partitions and use the install script - https://wiki.omv-extras.org/do…=omv7:i386_32-bit_install

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.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!

  • So, what in your use case justifies installing OMV to a 1TB disk?

    The idea of OMV is to not put data on the OS disk. Then you don't lose data if the OS disk fails. Using a 1TB disk for the OS is too big.

    I have 1 TB because I had it at hand.

    I keep data on two disks in a raid.

    I have the docker plugin installed and as I wrote in the first post I have folders from the plugin indicated on the disk/partitions with os/OMV.

    I did not install the KVM plugin so I do not know how to set it up, but I also assumed that I would set it to the disk with OMV.

    I did not want to have Dockers on the disk with data because I did not really understand this technology and that it could somehow affect my data on this disk. I assumed that KVM would not be turned on all the time or that I would turn them off from time to time to make a copy of the machine like in virtualbox, where it is probably enough to copy the disk, of course it will not hold, I do not know how many CPUs were assigned.

    The disk in the raid works

    And another reason why I didn't want to have docker or virtual machines on RAID is because I set the disks to turn off when they don't work for 30 minutes, they turn off, I know that in theory the disk breaks down most often when starting up or at least that's what they say but they work in raid 1 so if one disk breaks down there is a copy on the other and I think it's easy (because I didn't add it) to add a new disk to the existing raid 1.

    Raid works under ext4 so the folders from docker can be there because on the page

    As a general rule we will choose a drive with an EXT4 file system.

    and for kvm I don't know

    • Official Post

    That is fine if you want to separate the "data" and docker/kvm. docker won't do anything to your data unless you allow a container to access it.


    If it was my system, I would put OMV on a usb stick (32gb or so) and use the ssd for docker/kvm and raid for data.


    ext4 is a very good kvm filesystem. I use it.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.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!

  • And how do I restore a copy made by dd or a plugin?

    How do I make a copy of docekra containers from a plugin?

    Is it possible to simply copy virtual machine images?

    • Official Post

    And how do I restore a copy made by dd or a plugin?

    There are many threads on this. Please search.


    How do I make a copy of docekra containers from a plugin?

    What do you mean by "copy"? I don't know anything about docekra but you typically don't copy a container.

    Is it possible to simply copy virtual machine images?

    You can copy the files that make up a VM. Why not use the VM backup built-in to the plugin?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.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!

  • There are many threads on this. Please search.

    The internet is full of garbage and I don't know which ones are good.

    What do you mean by "copy"? I don't know anything about docekra but you typically don't copy a container.

    The containers themselves are probably short-lived but you can probably add a folder where the data is saved permanently.

    Isn't there any general instructions on how to save container data settings?

    Each container, whether it's pi hole or jalyfin, has it solved differently, where it stores configuration data and you have to approach each one individually?

    Is it possible to save only this file from compose?

    • Official Post

    The internet is full of garbage and I don't know which ones are good.

    I didn't mean the internet. I just meant the forum.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.5 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.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!

Participate now!

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