SQL Server 2012 Automatic backup

Source: Internet
Author: User
Tags diff management studio sql server management sql server management studio

SQL 2012 and 20,081, you can do a maintenance plan to automatically backup the database.

Now for a database maintenance plan, make a differential backup of the database at 0 points per day, make a full backup of the database every Sunday 0 o'clock, and delete an expired backup (two weeks ago) every night 10 o'clock.

The following methods are used to make such a maintenance plan:

Before you make a plan, you need to enable SQL Server Agent and set the startup mode to Automatic.

Next, click on "SQL Server Management Studio"--"management"--"maintenance plan"--"Maintenance Plan Wizard"--"Maintenance Plan Wizard"

Here because there are three plans, and each plan cycle is different, select "Each task is planned separately".

Then, according to the requirements of the maintenance task, I chose the "Backup Database (Full)", "Backup Database (diff)", "Clear maintenance" task "three

Then start defining each task, first defining the backup database (full) task, I'm backing up SharePoint, so I chose the content database wss_content for the specific database SharePoint. and select the backup set expires after 14 days (the settings here are useful for clear maintenance tasks), and finally choose the folder you need to write to the backup, such as D:/backup/full;

Then the definition of the "Backup Database (diff)" task, the same selection of a specific WSS_Content database, the selected expiration time is 14 days, select the folder to write to the backup, such as D:/backup/diff;

Finally, define the "Clear Maintenance" task, select "Backup File" in the deletion of the following types of files, select the Search Folder at the file location d:/backup, file extension bak, tick include the first level subfolder, select 2 weeks in the file retention time, change the schedule "22:00:00 execution" in the day.

Then always click "Next" until the Maintenance Plan Wizard is complete, but here the maintenance plan is not finished, the first two tasks are not planned, you need to plan for them separately

Here, set the schedule for the full backup to be backed up every Sunday 0 o'clock, and set up a daily backup schedule for the differential backup.

Finally, save the maintenance plan so that the backup plan for the SharePoint content database is completed.

SQL Server 2012 Automatic backup

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.