SQL 数据库自动备份

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14616764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 13:23:03  来源:igfitidea点击:

SQL Database automatic back up

sqlbackuplan

提问by chuck

I have an SQL database - I need to back it up everyday (at a minimum) - preferably multiple times a day - automatically so it definitely gets done.

我有一个 SQL 数据库 - 我需要每天(至少)备份它 - 最好每天多次 - 自动所以它肯定会完成。

I'm running Windows which the SQL database is stored on.

我正在运行存储 SQL 数据库的 Windows。

What programs (prefer free ones) can I use to back it up - I'm completely new with SQL so if you're gonna explain something - do it in layman's terms thanks (:

我可以用什么程序(最好是免费的)来备份它 - 我对 SQL 完全陌生,所以如果你要解释一些东西 - 用外行的话来做,谢谢(:

It needs to get backed up to another server (on the LAN).

它需要备份到另一台服务器(在 LAN 上)。

回答by pringgo_setiko

Auto Backup Database Using Maintenance Plans

使用维护计划自动备份数据库

Simple Step :

简单步骤:

  1. Go To SQL Server Configuration Manager > SQL Server Services > Run SQL Server Agent (Set it to Run Automatically)

  2. Go To SQL Server Management Studio, Find TAB Management > Maintenance Plans. Right Click > Maintenance Plans Wizard.

  3. Text your maintenance plans, ex: DailyBackup. Select Option button : Single Schedule for entire task.

  4. Click Configure > Set Schedule according your demands.

  5. Select Maintenance tasks. for this case, you choose Full Database backup.

  6. Click Next, then define which database to backup, set backup location, and backup extension.

  7. Click Next, Choose your report mode, then Finish.
  1. 转到 SQL Server 配置管理器 > SQL Server 服务 > 运行 SQL Server 代理(将其设置为自动运行)

  2. 转到 SQL Server Management Studio,找到选项卡管理 > 维护计划。右键单击 > 维护计划向导。

  3. 给您的维护计划发短信,例如:DailyBackup。选择选项按钮:整个任务的单一计划。

  4. 根据您的需求单击配置 > 设置计划。

  5. 选择维护任务。对于这种情况,您选择完整数据库备份。

  6. 单击下一步,然后定义要备份的数据库、设置备份位置和备份扩展名。

  7. 单击下一步,选择您的报告模式,然后单击完成。

回答by Stropharius

There are many such programs at the moment, you can try EMS SQL Backup. It is not free but it is very handy for this type of tasks and supports backups compression, encryption and upload backups to FTP, network and cloud locations.

目前有很多这样的程序,您可以尝试EMS SQL Backup。它不是免费的,但对于此类任务非常方便,并支持备份压缩、加密和将备份上传到 FTP、网络和云位置。