首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在VPS上备份版

问在VPS上备份版
EN

Database Administration用户
提问于 2019-12-19 19:28:17
回答 2查看 62关注 0票数 1

我正在考虑在VPS上安装Server版。

我的理解是,在Express Edition的局限性中,有一些涉及到便利备份的特性。

有人能解释一下为这个配置执行每日备份的一些选项吗?是否有一个直接的方式,或我需要购买更多的软件?

(如果这个问题看上去很傻的话,很抱歉。我是一个软件开发人员,而不是一个数据库或管理员。)

EN

回答 2

Database Administration用户

回答已采纳

发布于 2019-12-19 21:42:25

你最好的选择是用奥拉·哈伦的公用设施

https://ola.hallengren.com/

从常见问题

代码语言:javascript
复制
How do I get started with the SQL Server Maintenance Solution on SQL Server Express?

SQL Server Express has no SQL Server Agent. Therefore, the execution of the stored procedures must be scheduled by using cmd files and Windows Scheduled Tasks. Follow these steps.

    Download MaintenanceSolution.sql.
    Execute MaintenanceSolution.sql. This script creates the stored procedures that you need.
    Create cmd files to execute the stored procedures; for example:
    sqlcmd -E -S .\SQLEXPRESS -d master -Q "EXECUTE dbo.DatabaseBackup @Databases = 'USER_DATABASES', @Directory = N'C:\Backup', @BackupType = 'FULL'" -b -o C:\Log\DatabaseBackup.txt
    In Windows Scheduled Tasks, create tasks to call the cmd files.
    Schedule the tasks.
    Start the tasks and verify that they are completing successfully.

另一种选择是使用DBATools Powershell模块并创建和调度powershell脚本。

票数 5
EN

Database Administration用户

发布于 2019-12-19 19:44:34

速成版没有提供的东西之一是SQL代理,它允许任务的调度。备份的工作方式与其他版本相同,只是不能安排它们自动运行。这与Express和其他版本有很大的不同。

票数 0
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/255989

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档