Backup a live system


  • what's cron? And which program are you using?


    cron is the system scheduler. You tell it what programs to run and when. You can use the Scheduled Jobs function in OMV that writes into crontab files.


    You can google dd to see what it's about or just read its man page.

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


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • The first post in this thread explains how to do it. I would need exact details to tell you exactly how to do it.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • /usr/share/openmediavault/mkconf/backup


    Just to warn you, this "script" will be updated everytime the plugin is updated and your changes will be lost.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • Hi,
    I am planning to create a live backup that is available at any time to ensure a short failure time.
    I'd like a weekly backup.
    My first drive is an SSD, and I'd like to have an USB backup.
    I tried a full dd clone... but live ... and when I try to boot on the USB, the partition is completly corrupted (inodes issues ...).


    How can I proceed to have such ready to go backup ?

  • I finilized my script to have a ready to boot OMV drive ...


    You first need to do a cold clone of the running drive.
    Then, you can use this script to update the backup.


    juste change the grep ".*SSD.*External.*" to put your backup drive name.
    the '--grub' option update the grub (in case of kernel update for example).


  • Hello,


    as I understand, this function is now integrated into the Openmediavault Core, right?


    Was it ever considered to add the versioning-capability (with rsnapshot) to this? I ask this, because a backup of the current status of the system might be exactly what I do not need, if the backup was done after the problem raised.


    Another Question: How can I trigger the backup via cron?


    Greetings,
    Hendrik

  • as I understand, this function is now integrated into the Openmediavault Core, right?

    Nope. It is still the openmediavault-backup plugin from omv-extras.


    Was it ever considered to add the versioning-capability (with rsnapshot) to this?

    No but I guess I could look into that idea.


    How can I trigger the backup via cron?

    Execute the following command as root: omv-mkconf backup

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • Nope. It is still the openmediavault-backup plugin from omv-extras.

    Ah. I was not aware. Why? I.e. Why do both exist and where are the differences documented?
    Or do I mis-understand and in fact there is only one and the one I find under System-Backup is yours from omv-extras?



    Quote

    No but I guess I could look into that idea.

    That would be great!



    Quote

    Execute the following command as root: omv-mkconf backup

    Thanks!

  • Why? I.e. Why do both exist and where are the differences documented?

    There is no system backup in OMV core and never has been.

    Or do I mis-understand and in fact there is only one and the one I find under System-Backup is yours from omv-extras?

    The one under System Backup is from omv-extras.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • So I would like to clone my boot drive to a new one. Going from a bigger to a smaller drive. First I guess I need to shrink it. But since its ZFS how can I do that? Clonezilla wont clone the drive because the new is too small.


    Edit: More confused now. Booted up the drive i wanted to clone and openmediavault says its ext4. Gparted where i wanted to shrink was adamant it was zfs. I suspect pebkac. As usual.

  • So I would like to clone my boot drive to a new one. Going from a bigger to a smaller drive. First I guess I need to shrink it. But since its ZFS how can I do that? Clonezilla wont clone the drive because the new is too small.


    Edit: More confused now. Booted up the drive i wanted to clone and openmediavault says its ext4. Gparted where i wanted to shrink was adamant it was zfs. I suspect pebkac. As usual.

    If you used the OMV installer ISO, the boot drive is ext4. You should be able to shrink it in gparted live as long as there is enough free space.

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • If you used the OMV installer ISO, the boot drive is ext4. You should be able to shrink it in gparted live as long as there is enough free space.

    I tried again. But gparted thinks it zfs. And openmediavault says its ext4. I used omv installer yes. Perhaps its because i have other devices with zfs.. A bit strange.
    Also tried parted magic, but that wont boot at all. Are there any alternatives?

  • Are there any alternatives?

    You really shouldn't need anything else. parted magic should definitely work. Are you sure you are looking at the correct drive in gparted?

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

  • You really shouldn't need anything else. parted magic should definitely work. Are you sure you are looking at the correct drive in gparted?

    Not sure of much right now. But there wasnt anything to confuse really. Some bigger drives and two ssds. Source and destination. Ill give a go with a cold power off (powering off the supply so ipmi etc dies off). If something is left in cmos because i was switching drives during power off.

Participate now!

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