在Azure中为Windows VM备份运行前/后脚本 [英] Run Pre/Post script for Windows VM Backups in Azure

查看:82
本文介绍了在Azure中为Windows VM备份运行前/后脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Azure中运行Intersystems运行的名为Caché的数据库软件,该数据库软件必须先停顿数据库,然后才能运行VM快照.但是,Azure提供的任何本机备份解决方案都无法运行前/后脚本 在Windows VM上,以便我们可以使数据库停顿.我该如何解决?

I am running a database software called Caché by Intersystems in Azure that requires the database to be quiesced before we can run a VM Snapshot. However, none of the native backup solutions provided by Azure provide the ability to run a Pre/Post scripts on Windows VM's so that we can quiesce the database. How can I get around this?

是否存在每天可以运行按需备份的PowerShell命令?如果是这样,是否会遵循保留策略?

Are there PowerShell commands that can run on-demand backups every day? If so, would a retention policy be followed?

推荐答案

Colby,我们实际上没有在Azure备份中集成该选项.根据您的软件支持,很可能您将不得不使用PS,Bash或python编写脚本.最好的方法解决您的问题是在运行脚本之前 在备份/快照时间,您可以使用chron(Linux)或Windows的调度程序自动执行脚本.希望对您有所帮助.

谢谢,

Colby, We don't actually have that option integrated in azure backups. Most likely you would have to write either a script in PS, Bash or python, depending on what your software supports. The best way  to get around your issue is to run the script before the backup/snapshot time, you could automate the script using chron(Linux) or scheduler for windows. I hope this helps.

Thanks,

亚当


这篇关于在Azure中为Windows VM备份运行前/后脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆