SQL Server automatic backup settings and troubleshooting notes

1, start SQL Server Management Studio Manager, log into.

 

2. On the left side you can see this, we expand the "Management."

 

3, expand the "Management", we in the "Maintenance Plan" project, right-click pop-up menu, select "New Maintenance Plan."

4, where possible "Agent XP" component is closed the error box will appear.

Here, we need to modify the data master database. Open a New Query.

 Make sure that master library, click on "execution."

Paste the following modification statements up

sp_configure 'show advanced options', 1;   
GO   
RECONFIGURE;   
GO   
sp_configure 'Agent XPs', 1;   
GO   
RECONFIGURE   
GO 

 

Click to perform, we get the following results, just fine.

 

5, followed by New Maintenance Plan, will pop up a "New Maintenance Plan" under the name of the editor, where you can select the default name, directly determined by.

6, on the left you can see the task toolbox controls maintenance plan, select "Backup Database Task", double-click it or drag it to the right of the edit box.

7, right-click the "Edit" on the "Back Up Database task" on the right.

8, you can open the Task edit box. After a good editor, on the single "OK."

9 to do now is to give this task to customize program execution time. Stand-alone behind the right side of the sub-plans small icon (like a calendar that).

10, will pop up "Job Schedule Properties" edit box. After setting click "OK."

11, remember to click "Save Selected Items" on the right side of the edit box.

 

12, to here should be set up, but I encountered the next day boarded the server full of joy, a look at my backup folder is empty! I started to think it is not where not set right, wrong in what it?

所以这里建议做完了上面的配置后,先自检一下,在左侧的“维护计划”下,单击右键,弹出菜单里点击“执行”。看看会不会出错。如果没有出错提示框,那么你可以第二天看数据包安静的睡在备份文件夹里。

13、如果出错了,就打开服务器管理器里面的“服务”

右侧找到名称为“SQL Server 代理 (MSSQLSERVER)”的一个服务,双击打开,然后设置成如下图:

14、到此再次按第12步进行操作,不会提示执行错误,稍等片刻(按你的数据库大小来定),你的备份文件夹就会有备份出来的数据包了。

Guess you like

Origin www.cnblogs.com/sindtoto/p/10959514.html