Re: [Bacula-users] Bacula and kvm

2017-11-22 Thread Josip Deanovic
On Wednesday 2017-11-22 09:19:46 Josh Fisher wrote: > As has been pointed out, libvirt provides a means of snapshotting a > live VM's storage, so it is quite possible to backup images from the > host machine. That said, I strongly suggest you consider the following. > > While the disk image

Re: [Bacula-users] Bacula and kvm

2017-11-22 Thread Josh Fisher
As has been pointed out, libvirt provides a means of snapshotting a live VM's storage, so it is quite possible to backup images from the host machine. That said, I strongly suggest you consider the following. While the disk image approach simplifies backup, it complicates restores. There is

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Heitor Faria
>>> > Hello, Bacula Users, >>> > >>> > Until now I think the most elegant way of doing this was not >>> > mentioned. >>> > >>> > 1. ClientRunBeforeJob virsh disk snapshot creation. >>> > 2. Bacula FileSet regular image files backup. >>> > 3. ClientRunAfterJob blockcommit to resume machine

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Heitor Faria
>> > Hello, Bacula Users, >> > >> > Until now I think the most elegant way of doing this was not >> > mentioned. >> > >> > 1. ClientRunBeforeJob virsh disk snapshot creation. >> > 2. Bacula FileSet regular image files backup. >> > 3. ClientRunAfterJob blockcommit to resume machine state. >>

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Josip Deanovic
Josip DeanovicOn Tuesday 2017-11-21 14:18:56 wrote: > On Tuesday 2017-11-21 10:36:59 Heitor Faria wrote: > > Hello, Bacula Users, > > > > Until now I think the most elegant way of doing this was not > > mentioned. > > > > 1. ClientRunBeforeJob virsh disk snapshot creation. > > 2. Bacula

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Josip Deanovic
On Tuesday 2017-11-21 10:36:59 Heitor Faria wrote: > Hello, Bacula Users, > > Until now I think the most elegant way of doing this was not mentioned. > > 1. ClientRunBeforeJob virsh disk snapshot creation. > 2. Bacula FileSet regular image files backup. > 3. ClientRunAfterJob blockcommit to

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Heitor Faria
-users@lists.sourceforge.net > Sent: Tuesday, November 21, 2017 10:36:59 AM > Subject: Re: [Bacula-users] Bacula and kvm > Hello, Bacula Users, > > Until now I think the most elegant way of doing this was not mentioned. > > 1. ClientRunBeforeJob virsh disk snaps

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Heitor Faria
/e36c06e716d3328b512b Regards, - Original Message - > From: "Josip Deanovic" <djosip+n...@linuxpages.net> > To: bacula-users@lists.sourceforge.net > Sent: Tuesday, November 21, 2017 9:02:11 AM > Subject: Re: [Bacula-users] Bacula and kvm > On Tuesday 2017-11-2

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Josip Deanovic
On Tuesday 2017-11-21 14:33:55 Thing wrote: > I am looking to do the very same thing. So far I cant seem to find > scripts that will actually snapshot the VMs so the "files" can be > backed up. I have found a few that supposedly do so but they dont seem > to work. > :( > > What I am doing now

Re: [Bacula-users] Bacula and kvm

2017-11-21 Thread Josip Deanovic
On Monday 2017-11-20 17:17:50 Bill Arlofski wrote: > Hello Josip, > > Yes, I think you are correct about this. > > I just checked on my Proxmox system (uses KVM for the hypervisor), and I > see that when a VM is snapshotted, there is no additional disk snapshot > file created. > > I had been

Re: [Bacula-users] Bacula and kvm

2017-11-20 Thread Thing
I am looking to do the very same thing. So far I cant seem to find scripts that will actually snapshot the VMs so the "files" can be backed up. I have found a few that supposedly do so but they dont seem to work. :( What I am doing now is I am going to use the libvirt shutdown script to shut

Re: [Bacula-users] Bacula and kvm

2017-11-20 Thread Bill Arlofski
On 11/20/2017 03:27 PM, Josip Deanovic wrote: > On Monday 2017-11-20 11:45:09 Bill Arlofski wrote: > [...] >> Using a Runscript (with RunsWhen=before), you can have small script to >> tell the KVM hypervisor to perform a snapshot of a particular VM. Then, >> once the snapshot is complete, the job

Re: [Bacula-users] Bacula and kvm

2017-11-20 Thread Josip Deanovic
On Monday 2017-11-20 11:45:09 Bill Arlofski wrote: [...] > Using a Runscript (with RunsWhen=before), you can have small script to > tell the KVM hypervisor to perform a snapshot of a particular VM. Then, > once the snapshot is complete, the job would backup the VM's config and > disks, then in a

Re: [Bacula-users] Bacula and kvm

2017-11-20 Thread Bill Arlofski
On 11/20/2017 04:41 AM, Gokan Atmaca wrote: > Hello > > I'm going to use Bacula for the first time. I have a virtual server > running on 10 KVM. Is it a problem if I back up all of them with > Bacula? I have Qcow2 disk images. I want to backup these disk images > just like a file. > > Is this a

Re: [Bacula-users] Bacula and kvm

2017-11-20 Thread Josip Deanovic
On Monday 2017-11-20 14:41:06 Gokan Atmaca wrote: > Hello > > I'm going to use Bacula for the first time. I have a virtual server > running on 10 KVM. Is it a problem if I back up all of them with > Bacula? I have Qcow2 disk images. I want to backup these disk images > just like a file. > > Is

Re: [Bacula-users] Bacula and kvm

2017-11-20 Thread Kern Sibbald
Hello, In principle you can simply backup VM image files.  However there is one condition and that is that the backup must be done with the VM turned off or done by somehow (I don't know how) making the VM pause and flush everything to disk.   Otherwise you risk to have a backup that when