In this post we will see How To Backup SCCM 2012 R2 Server. If you have deployed SCCM 2012 R2 in your organization then you must know how to backup SCCM 2012 R2 server because backing up avoids loss of critical data. For Configuration Manager sites, this preparation ensures that sites and hierarchies are recovered with the least data loss and in the quickest possible time. System Center 2012 R2 Configuration Manager provides a backup maintenance task that runs on a schedule and backs up the site database, specific registry keys, and specific folders and files. You can also create the AfterBackup.bat file to perform post-backup actions automatically after the backup maintenance task runs successfully.
Before you perform the backup of SCCM server few things to keep in mind.
- The SMS Writer service must be running for the Configuration Manager site back up to successfully complete.
- The SMS Writer service must run under the Local System account.
- You can automate backup for Configuration Manager sites by scheduling the predefined Backup Site Server maintenance task.
- The Local System account on the site server must have Write NTFS file system permissions to the local folder for the site server backup. The Local System account on the computer that is running SQL Server must have Write NTFS permissions to the folder for the site database backup.
What is the recommended schedule to take a backup of SCCM Server ?
You must configure an appropriate schedule for the site backup task. As a best practice, consider a backup schedule that is outside active working hours. If you have a hierarchy, consider a schedule that runs at least two times a week to ensure maximum data retention in the event of site failure.
What Gets Backed Up ?
(a) Configuration Manager site database.
(b) Master site control file (.InboxesSitectrl.boxSitectrl.ct0).
(c) SMS and NAL registry keys on the site server.
(d) Configuration Manager installation directory on the site server.
Can I use the same technique to backup my secondary site ?
You can back up a central administration site and primary site, but there is no backup support for secondary sites or site system servers.
Can I use Data Protection Manager to Backup Site Database ?
Starting in Configuration Manager SP1, you can use System Center 2012 Data Protection Manager (DPM) to back up your site database. You must create a new protection group in DPM for the site database computer. On the Select Group Members page of the Create New Protection Group Wizard, you select the SMS Writer service from the data source list, and then select the site database as an appropriate member.
What does not get backed up ?
a) The Backup Site Server maintenance task does not include a backup for the content library or the package source files. When a site server fails, the information about the content library files is restored to the site database, but you must restore the content library and package source files on the site server.
(b) When you have modified predefined or created custom Reporting Services reports, creating a backup for the report server database files is very important as this is not backed up when we run backup task.
(c) If you are using Updates Publisher 2011(SCUP) to manage custom software updates, determine whether you have software updates that needs to be backed up. You must include SCUP database in your backup plan.
(d) The user state migration data is not backed up as part of the Site Server Backup maintenance task. As part of your backup plan, you must manually back up the folders that you specify to store the user state migration data.
When can I use option Recover the site database using a backup set ?
You can use Recover the site database using a backup set option when you have a backup of the Configuration Manager site database that was created as part of the Backup Site Server maintenance task run on the site before the site database failure.
How To Backup SCCM 2012 R2 Server
Launch the SCCM 2012 R2 console, click on Administration, expand Overview, expand Site Configuration, click on Sites and on the right pane click on your primary site. On the top ribbon click Site Maintenance.
This will bring up Site Maintenance window. You can see there are list of tasks, few of them are enabled and running. Look for task named “Backup Site Server“. This task is not enabled by default, right click on the task and click Edit.
When you edit the task it brings Backup Site Server Properties window, click Enable this task, click Set Paths and set the path where you want to place the backup files of SCCM 2012 R2 server.
Set the Schedule for the backup. In this example we will schedule the backup on weekends. Set the start time as per your requirements. Check the box Enable alerts for backup task failures. Click Apply and OK.
We now see that Backup Site Server task is enabled and scheduled to run with configured settings.
This was all about scheduling the backup task automatically. The next section will show how to backup SCCM 2012 R2 server manually.
How To Backup SCCM 2012 R2 Server Manually – Consider a scenario where administrator needs to backup the SCCM 2012 R2 server immediately ? In such cases we can manually backup SCCM server. On the SCCM server, click on run and click services.msc, look for the service named SMS_SITE_BACKUP (C:\Program Files\Microsoft Configuration Manager\bin\x64\smsbkup.exe), right click the service and click Start.
The backup task has started and it is being done in the background. In <ConfigMgrInstallationFolder>Logs, review Smsbkup.log for warnings and errors. To see the backup process open the log file smsbkup.log located under the path C:\Program Files\Microsoft Configuration Manager\Logs. From the log file we see that SMS_SITE_BACKUP service 2012 has been started.
After few seconds we see that the backup has been completed successfully. Look for the line Backup completed – Day Month Date HH:MM:SS YY. After the backup task is completed the SMS_SITE_BACKUP service is stopped automatically.
Let’s open the backup folder and see what’s inside it. We see 2 folders SiteDBServer and SiteServer which contains database files and SCCM folders (inboxes, Logs, Data etc) respectively.
Under SiteDBServer folder we see CM_sitecode.mdf and CM_sitecode_log.ldf files.