Create an SQL database maintenance backup plan
- Last UpdatedJan 21, 2025
- 2 minute read
Following is the procedure for creating a database maintenance plan for an example system that includes System Platform, Historian, MES, and BI Gateway databases.
Create an SQL database maintenance backup plan
-
Make sure the SQL Server Agent is running.

-
Create a new Maintenance Plan and name it Backup.

-
Add sub-plans for each scheduled period. In this case:
-
Weekly
-
Daily
-
Hourly

-
-
Set the Schedule for each subplan.



-
For each subplan, add the maintenance plan tasks from the Toolbox window as suggested below.
-
Weekly: Back Up Database Task of type Full, followed by a Maintenance Cleanup Task that deletes the backups that preceded the full backup by a specified time period.

-
Daily: Back Up Database Task of type Differential, followed by a Maintenance Cleanup Task that deletes the backups that preceded the differential backup by a specified time period.
-
Hourly: Back Up Database Task of type Differential.
-
-
Specify the databases to be included in the full database backup tasks as follows:
-
Database Server, Weekly: Galaxy repository databases, Work Tasks repository databases
-
Database Server, Daily: MES database, Work Tasks Farm database, Historian (Runtime) database
-
Report Server, Weekly: main, msdb, ReportServer, BI Gateway database
-
-
Specify the databases to be included in the Differential Database Backup as follows:
-
Database Server, Hourly: MES database, Historian (Runtime) database
-