ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    KVM and Back Ups

    IT Discussion
    kvm kvm-vdi backup how to
    12
    60
    5.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ObsolesceO
      Obsolesce
      last edited by

      I'm not aware of any agentless KVM backup software.

      I've been using ReaR, but that does the entire server and/or disks of the host (effectively backing up the VMs), but they aren't individually restorable.

      However, ReaR is easy enough to set up automagically in each VM with Salt. I feel ya though, definitely a pain to have to install agents or software in each VM... But then again, Salt would take care of that.

      I'll definitely be watching this thread for ideas or agentless KVM VM backup software.

      DustinB3403D 1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403 @Obsolesce
        last edited by

        @tim_g I'm trying to figure out the system requirements to get this perl script to run, and then how to run it.

        And maybe an easy way to update it for any systems I'd want to backup.

        ObsolesceO 1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce @DustinB3403
          last edited by

          @dustinb3403 said in KVM and Back Ups:

          @tim_g I'm trying to figure out the system requirements to get this perl script to run, and then how to run it.

          And maybe an easy way to update it for any systems I'd want to backup.

          I only took a few 2-3 second glimpses along that script... and I seen a spot that turns the VM off. Does it actually do as you think? You looked at it more thann I did, so perhaps I seen that part out of context.

          DustinB3403D 1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403 @Obsolesce
            last edited by

            @tim_g said in KVM and Back Ups:

            @dustinb3403 said in KVM and Back Ups:

            @tim_g I'm trying to figure out the system requirements to get this perl script to run, and then how to run it.

            And maybe an easy way to update it for any systems I'd want to backup.

            I only took a few 2-3 second glimpses along that script... and I seen a spot that turns the VM off. Does it actually do as you think? You looked at it more thann I did, so perhaps I seen that part out of context.

            It has several different options, it can snap, turn off the vm and then power it back on etc.

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce @DustinB3403
              last edited by

              @dustinb3403 said in KVM and Back Ups:

              @tim_g said in KVM and Back Ups:

              @dustinb3403 said in KVM and Back Ups:

              @tim_g I'm trying to figure out the system requirements to get this perl script to run, and then how to run it.

              And maybe an easy way to update it for any systems I'd want to backup.

              I only took a few 2-3 second glimpses along that script... and I seen a spot that turns the VM off. Does it actually do as you think? You looked at it more thann I did, so perhaps I seen that part out of context.

              It has several different options, it can snap, turn off the vm and then power it back on etc.

              Ah, good. That must have been the part I seen then. I'll look at it more another time when I have the time...

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                For the requirements, I found out you need to install perl-XML-Simple

                Obviously this needs to be installed to the server.

                So. . .

                ssh root@SERVER-IP-Address
                sudo dnf install perl-XML-Simple
                

                I now have some output to play with.

                0_1512874213774_VirtualBox_2017-12-09_21-49-52.png

                matteo nunziatiM 1 Reply Last reply Reply Quote 0
                • stacksofplatesS
                  stacksofplates
                  last edited by

                  https://mangolassi.it/topic/12537/kvm-snapshot-backup-script

                  1 Reply Last reply Reply Quote 1
                  • ObsolesceO
                    Obsolesce
                    last edited by

                    @stacksofplates said in KVM and Back Ups:

                    https://mangolassi.it/topic/12537/kvm-snapshot-backup-script

                    The name is a little misleading, I had to read into it and pick it apart to get it.

                    So it looks like this creates a full backup of the VM. This seems to accomplish what is needed here @DustinB3403

                    The function of the script is to create a full backup of the VM and VM's disk, without having to shut down the VM. The way it's done is by creating a snapshot, to get the VM off of it's main virtual disk, allowing you to get a solid replica of it, then the script deletes the snapshot, merging the it back into the main VD.

                    Nice @stacksofplates !

                    1 Reply Last reply Reply Quote 0
                    • matteo nunziatiM
                      matteo nunziati @DustinB3403
                      last edited by

                      @dustinb3403 I've been using this script in production for somethin glike 1 year when I was using KVM as hypervisor.
                      this is the facto the only good solution for KVM. It also supports gluster volumes!
                      you do nopt need to bring the VM down IF you build your VM disk on some snapshottable stuff like LVM or qcow (not sure about the latter).

                      I've written a small note for my usage at the time... need a bit to translate it in english. this is how I used it in brief

                      wget http://repo.firewall-services.com/misc/virt/virt-backup.pl
                      chmod 755 virt-backup.pl
                      yum install perl perl-XML-Simple perl-Sys-Virt
                      mkdir -p /var/lib/libvirt/backup
                      #(maybe you want this to be a share mounted from a remote NAS)
                      /$PATH/$TO/virt-backup.pl --action=dump --vm=VM_NAME --compress=pbzip2
                      

                      note that I installed bbzip from EPEL to speedup compression and make full use of all server cores: my backups were scheduled during not working hours with the server idling for the most.

                      matteo nunziatiM 1 Reply Last reply Reply Quote 0
                      • matteo nunziatiM
                        matteo nunziati @matteo nunziati
                        last edited by

                        @DustinB3403 almost forgotten... I've this stub on github

                        1 Reply Last reply Reply Quote 0
                        • Emad RE
                          Emad R @DustinB3403
                          last edited by Emad R

                          @dustinb3403

                          In my previous experiments which worked but have not used it in production. I would just freeze the VM, then rsync it, then thaw it. If your backing up to LAN down time will be very minimal and with rsync you can backup incrementally of you wish.

                          It is recommended to also stop services first then freeze then rsync then thaw then start services again. I liked it and its KISS principle.

                          1 Reply Last reply Reply Quote 0
                          • ObsolesceO
                            Obsolesce
                            last edited by

                            I found this. I may try it on my laptop later.

                            Live backup of QEMU/KVM/libVirt virtual machines via Duplicity
                            https://itefix.net/content/live-backup-qemu-kvm-libvirt-virtual-machines-duplicity

                            1 Reply Last reply Reply Quote 1
                            • ObsolesceO
                              Obsolesce
                              last edited by

                              Here's something as well... KVM live backup software, that's actually current:

                              https://www.handybackup.net/kvm-backup.shtml

                              ObsolesceO 1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch
                                last edited by

                                I have found that there are many easy ways to get a backup of your VM.

                                What I have not found is something that can look at those snapshots that are made and backup incremental differences.

                                I cannot offsite 1+ TB per day in image files.

                                ObsolesceO 1 Reply Last reply Reply Quote 1
                                • ObsolesceO
                                  Obsolesce @Obsolesce
                                  last edited by

                                  @tim_g said in KVM and Back Ups:

                                  Here's something as well... KVM live backup software, that's actually current:

                                  https://www.handybackup.net/kvm-backup.shtml

                                  Wtf... the download is an EXE. I don't get it...

                                  1 Reply Last reply Reply Quote 0
                                  • ObsolesceO
                                    Obsolesce @JaredBusch
                                    last edited by

                                    @jaredbusch said in KVM and Back Ups:

                                    I have found that there are many easy ways to get a backup of your VM.

                                    What I have not found is something that can look at those snapshots that are made and backup incremental differences.

                                    I cannot offsite 1+ TB per day in image files.

                                    Yeah that would be great to find something like that. I'm looking. I remember someone finding something that's paid. But I forget what it was. I forgot to bookmark it.

                                    JaredBuschJ 1 Reply Last reply Reply Quote 0
                                    • JaredBuschJ
                                      JaredBusch @Obsolesce
                                      last edited by

                                      @tim_g said in KVM and Back Ups:

                                      @jaredbusch said in KVM and Back Ups:

                                      I have found that there are many easy ways to get a backup of your VM.

                                      What I have not found is something that can look at those snapshots that are made and backup incremental differences.

                                      I cannot offsite 1+ TB per day in image files.

                                      Yeah that would be great to find something like that. I'm looking. I remember someone finding something that's paid. But I forget what it was. I forgot to bookmark it.

                                      I pay for that functionality now with Hyper-V and Veeam. So I do not mind paying for it for KVM.

                                      1 Reply Last reply Reply Quote 0
                                      • ObsolesceO
                                        Obsolesce
                                        last edited by

                                        Found it:

                                        https://storware.eu/en/storware-vprotect/

                                        It shows incrementals in the screenshots anyways.

                                        1 Reply Last reply Reply Quote 0
                                        • stacksofplatesS
                                          stacksofplates
                                          last edited by

                                          You could theoretically just use one of the scripts to do incremental. It’s all AOW/ROW so you just get a new disk each snapshot. Then at the end of the week or whatever block commit everything back into the main image and start over.

                                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                                          • JaredBuschJ
                                            JaredBusch @stacksofplates
                                            last edited by

                                            @stacksofplates said in KVM and Back Ups:

                                            You could theoretically just use one of the scripts to do incremental. It’s all AOW/ROW so you just get a new disk each snapshot. Then at the end of the week or whatever block commit everything back into the main image and start over.

                                            Something like that is what I want. Replicating what I get from Veeam now.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post