Hello Zainelabdeen You can turn off the machines and make a copy of them with the scripts attached and turn them on again
# The FileSet example
FileSet {
Name = "FileSet_VM_SRV_Intranet"
Include {
Options {
signature = md5
compression = gzip
onefs = no
ignorecase = yes
accurate = pins5
verify = pins5
}
File = "C:/Hyper-V/Virtual
Machines/CC1C79AE-715F-431D-AD53-CF9A7BAB7D9B"
File = "C:/Hyper-V/Virtual
Machines/CC1C79AE-715F-431D-AD53-CF9A7BAB7D9B.xml"
File = "C:/Hyper-V/Virtual Hard Disks/servidor_debian_intranet.vhdx"
}
}
# The Job Example
Job {
Name = "Backup_VM_Servidor_Intranet"
JobDefs = "Backup_Padrao"
Client = srv_hyperv-fd
FileSet = "FileSet_VM_SRV_Intranet"
Schedule = "Agenda_VM_Diaria"
ClientRunBeforeJob = "powershell C:/'Program
Files'/Bacula/scripts/stop_virtual_machine.ps1 SRV_INTRANET"
ClientRunAfterJob = "powershell C:/'Program
Files'/Bacula/scripts/start_virtual_machine.ps1 SRV_INTRANET"
Enabled = true
Priority = 10
}
Or you can use wbadmin (Windows Server Backup) to make a hot backup and
copy the files:
https://blogs.msdn.microsoft.com/virtual_pc_guy/2013/02/25/backing-up-hyper-v-virtual-machines-from-the-command-line/
Best regards
*Wanderlei Hüttel*
http://www.huttel.com.br
2017-08-29 14:30 GMT-03:00 Zainelabdeen S.A Elgraeed <[email protected]>:
> I install bacula client on Microsoft server 2012 R2 to backup my VM, I
> found a tutorial to do that on this link :
> http://www.ithierarchy.com/ITH/Bacula/BaculaHyper-V
>
> but not work for me.
>
> what your suggestion to complete backup VM.
> also, i need help for planning backup scheduling.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
start_virtual_machine.ps1
Description: Binary data
stop_virtual_machine.ps1
Description: Binary data
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
