Hyper-V Backup Powershell 备份脚本Export-VM

频道:小技巧 日期: 浏览:859

Hyper-V Backup Powershell 备份脚本Export-VM


自动备份到某个盘

脚本地址https://gal.vin/utils/hyperv-backup-utility/

https://github.com/Digressive/HyperV-Backup-Utility


可以阅读https://github.com/Digressive/HyperV-Backup-Utility/blob/master/README.md

进行相应的操作

简单方法,创建计划任务程序

image.png

image.png

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

image.png

添加参数就是脚本存放的位置 以及可选参数

如:e:\Hyper-V-Backup.ps1 -BackupTo E:\Backups -List E:\vms.txt -Wd E:\temp -Keep 30 -Compress -L E:\