Stellar Logo
  • For Individuals
    Back to main menu

    For Individual

    • Windows Data Recovery

      Recovers lost or deleted Office documents, emails, presentations & multimedia files.

      • Free
      • Standard
      • Professional
      • Premium
    • Mac Data Recovery

      Recovers deleted files, photos, videos etc. on Mac.

      • Free
      • Standard
      • Professional
      • Premium
    • Photo Recovery

      Recover photos, videos, & audio files from all cameras and storage on Windows or Mac.

      • Standard
      • Professional
      • Premium
    • iPhone Data Recovery

      Recover deleted photos, videos, contacts, messages etc. directly from iPhone & iPad.

      • Recover
      • Erase
      • Toolkit
    • Video Repair

      Repair multiple corrupt videos in one go. Supports MP4, MOV & other formats.

      • Standard
      • Premium
    • Photo Repair

      Repair multiple corrupt photos in one go. Supports JPEG & other formats.

      • Standard
      • Professional
      • Premium
  • For Business
    Back to main menu

    For Business

    • Email Repair
      • Exchange Repair Repair corrupt EDB file & export mailboxes to Live Exchange or Office 365
      • Outlook PST Repair Repair corrupt PST & recover all mailbox items including deleted emails & contacts
      • OLM Repair Repair Outlook for Mac (OLM) 2011 & 2016 backup files & recover all mailbox items
      • Exchange Toolkit Repair EDB & Exchange backup file to restore mailboxes, convert OST to PST, & convert EDB to PST
      • Active Directory Repair Repair corrupt Active Directory database (Ntds.dit file) & extract all objects in original form
    • Email Converter
      • EDB to PST Convert online & offline EDB file & extract all mailbox items including Public Folders in PST
      • OST to PST Convert inaccessible OST file & extract all mailbox items including deleted emails in PST
      • NSF to PSTConvert IBM Notes NSF file & export all mailbox items including emails & attachments to PST
      • MBOX to PSTConvert MBOX file of Thunderbird, Entourage & other clients, & export mailbox data to PST
      • OLM to PST Convert Outlook for Mac Data File (OLM) & export all mailbox data to PST in original form
      • GroupWise to PST Convert GroupWise mail & export all mailbox items - emails, attachments, etc. - to PST
      • EML to PSTConvert Windows Live Mail (EML) file & export mailbox data - emails, attachments, etc. - to PST
      • Office 365 to PSTConnect to Office 365 account & export mailbox data to PST and various other formats
      • Migrator for Office 365Quickly migrate Outlook data files(OST/PST) directly to Office 365 or Live Exchange
    • File Repair
      • SQL Repair Repair corrupt .mdf & .ndf files and recover all database components in original form
      • Access RepairRepair corrupt .ACCDB and .MDB files & recover all records & objects in a new database
      • QuickBooks RepairRepair corrupt QuickBooks® data file & recover all file components in original form
      • MySQL RepairRepair MyISAM & InnoDB tables and recover all objects - keys, views, tables, triggers, etc.
      • Excel RepairRepair corrupt Excel (.XLS & .XLSX) files and recover tables, charts, chart sheet, etc.
      • BKF RepairRepair corrupt backup (BKF, ZIP, VHDX and .FD) files and restore complete data
      • Database ConverterInterconvert MS SQL, MySQL, SQLite, and SQL Anywhere database files
      • PowerPoint RepairRepair corrupt PPT files and restore tables, header, footer, & charts, etc. like new
      • File Repair ToolkitRepair corrupt Excel, PowerPoint, Word & PDF files & restore data to original form
    • Data Recovery & Erasure
      • Data RecoveryRecover lost or deleted data from HDD, SSD, external USB drive, RAID & more.
      • Tape Data RecoveryRetrives data from all types and capacities of tape drives including LTO 1, LTO 2, LTO 3, & others.
      • Virtual Machine RecoveryRecover documents, multimedia files, and database files from any virtual machine
      • File ErasurePermanently wipe files and folders, and erase traces of apps and Internet activity.
      • Mobile ErasureCertified and permanent data erasure software for iPhones, iPads, & Android devices
      • Drive ErasureCertified and permanent data erasure software for HDD, SSD, & other storage media
    • Toolkit
      • Exchange Toolkit5-in-1 software toolkit to recover Exchange database, convert EDB to PST, convert OST to PST, restore Exchange backup, and reset Windows Server password.
      • Outlook ToolkitComprehensive software suite to repair PST files, merge PST files, eliminate duplicate emails, compact PST files, and recover lost or forgotten Outlook passwords.
      • File Repair ToolkitPowerful file repair utility to fix corrupt Word, PowerPoint, and Excel documents created in Microsoft Office. It also repairs corrupt PDF files and recovers all objects.
      • MS SQL Toolkit5-in-1 software toolkit to repair corrupt SQL database, restore database from corrupt backup, reset database password, analyze SQL logs, & interconvert databases.
      • Data Recovery ToolkitSoftware helps to recovers deleted data from Windows, Mac and Linux storage devices. Also supports recovery from RAIDs & Virtual Drives.
    • Forensic
      • Email ForensicAdvanced email forensic solution for cyber experts to audit, analyze, or investigate emails & gather evidences.
      • Log Analyzer for MySQLAnalyze forensic details of MySQL server database log files such as Redo, General Query, and Binary Log.
      • Exchange AuditorExchange Server monitoring solution to automate audits, scans and generate reports ìn real-time.
      • Log Analyzer for MS SQLTrack & analyze MS SQL Server database transactions log files.
  • Our Partners
  • Lab Services
  • Support
  • About

Trending Searches

Data Recovery

Photo Recovery

Video Repair

iPhone Data Recovery

File Erasure Software

Exchange Repair

OST to PST

PST Repair

Raid Recovery

MS SQL Repair

Toolkit for MS SQL 5 minute read

How to Take SQL Server Database Backup Automatically

Charanjeet Kaur
Written By
Charanjeet Kaur
Raja Jegan R
Approved By
Raja Jegan R
stellar calander
Updated on
January 23rd, 2023

Summary: This blog explains how to automate SQL Server database backup using Maintenance Plan Wizard and SQL Server Agent job. If you’re unable to take automatic backup due to corruption in the database, or the backup is corrupted, using the tools available in Stellar Toolkit for MS SQL may help.

Free Download for Windows

Contents

  • Methods to Schedule a Backup
  • EndNote

One of the critical responsibilities of a SQL database administrator is to get a database backed up successfully. However, it is crucial to maintain regular database backups to reduce the chances of data loss while restoring the database from backup. You can accomplish this by scheduling automatic backup of a SQL Server database.

Taking SQL Server database backup automatically also saves time and the manual effort required to run database backup. There are different methods you can use to create a scheduled backup of a SQL database automatically.

Methods to Schedule a Backup

Following are the two methods you can use to schedule an automated backup:

Method 1 – Taking Database Backup Automatically Using Maintenance Plan Wizard

The Maintenance Plan Wizard is an easier and convenient method for creating automated backups with limited options.

You can set a schedule to automatically back up a SQL database using the Maintenance Plan Wizard by following these steps:

  • Open SQL Server Management Studio (SSMS), and connect to a server instance.
  • Expand the Management folder from the ‘Object Explorer’ pane, right-click on Maintenance Plans, and choose Maintenance Plan Wizard.
select maintenance plan wizard
  • When the ‘SQL Server Maintenance Plan Wizard’ opens, click Next.
sql server maintenance plan
  • On the ‘Select Plan Properties’ screen, enter name of your maintenance backup plan. In our case, we have specified it as ‘AutomateBackupDatabase’. Next, enter a description for the maintenance plan, and then click Change.
Select Plan Properties
  • On the ‘New Job Schedule’ dialog box, specify the frequency of your database backup, the time you want the backup process to run, and then click OK.
new job schedule
  • Click Next.
continue with backup maintenance plan
  • On the ‘Select one or more maintenance tasks:’ screen, choose the Back Up Database option as you can see in the below screen.
select backup database option
  • To execute full database backup,click Next.
back up full database
  • On ‘Define Back Up Database (Full) Task’ screen, under General sectionspecify all or a specific database for backup, and then click OK.
full backup task
  • Click on the Destination tabfrom the ‘Define Back Up Database (Full) Task’ screen. Next, check options by clicking on the Options tab, and then click Next.
choose destination to save automatic backup plan
  • By default, a report of the maintenance plan actions is written to a text file in the specified location. You may choose to change the default location, and then press Next.
report of the maintenance plan actions
  • Once you’re satisfied with the backup maintenance plan options, click Finish.
the backup maintenance plan options
  • Success status is displayed once the selected actions for the backup maintenance plan are performed successfully. Click Close.
backup maintenance plan are performed successfully

Now, from the ‘Object Explorer’ pane, right-click on SQL Server Agent, and you will see a job created automatically for the backup maintenance plan.

a job created automatically for the backup maintenance plan

While the Maintenance Plan Wizard provides a more effortless and hassle-free way of taking database backup, it fails to provide granular control and configuration options for scheduling automated backups. An alternative is to create an automatic backup job using SQL Server Agent.

Method 2 – Taking Database Backup Automatically Using SQL Server Agent Jobs

Follow these steps to create an automated backup on a scheduled basis using SQL Server Agent job:

  • In SSMS, expand SQL Server Agent in the ‘Object Explorer’ pane, right-click on Jobs and click New job.
create new job
  • When the ‘New Job’ screen opens, you can see several configuration options for the automated backup job. The options allows scheduling backup, setting up alerts for the backup job, adding notifications, etc. On the ‘General’ page, specify a name for the backup job.
specify name for the job
  • Click the Steps tab. On the Steps page, click the New button.
create new backup
  • On the ‘New Job Step’ screen, specify step name, and then enter SQL code to create the new backup step:
USE Test_Database
GO
BACKUP DATABASE [Test_Database]
TO  DISK = N’C:\Program Files\Microsoft SQL Server\MSSQL10_50.STELLAR\MSSQL\Backup\Test_Database.bak’
sql script for backup

Note: You may also add SQL code for creating a differential and transaction log backup.

  • Click OK to create the new backup step. This will take you to the ‘New Job’ screen. On the screen, click the Schedules tab.
schedule automatic backup job
  • On the ‘Schedules’ page, click the New button. In the ‘New Job Schedule’ screen, enter name for the automatic database backup you want to schedule. Next, select the frequency, duration, and the start time when you want the backup job to run automatically. Click OK.
new backup job schedule
  • Click on the ‘Alerts’ tab if you want to setup any alerts for the automated backup job. On the ‘Alerts’ page, click Add.
add alerts for automated backup job
  • Select the database for which you want to setup alerts, and click OK.

Note: You may also choose to set up notifications if the database backup job fails.

  • Click on OK once again after specifying the job properties.

After executing the above steps, expand the Jobs folder. You will see the new ‘Automate DB Backup’ job. Also, you can see the alerts for the backup job that indicates corruption suspected while taking a backup.

automated backup job with alerts

What to do to fix corruption?

If the backup is corrupted, using Stellar Toolkit for MS SQL software can come in handy. The software comes with different tools that help database administrators resolve the most common issues with a SQL database. For example, using the Backup Extractor tool in the toolkit, you can extract all the data from the corrupted backup. Also, you can use the SQL repair tool to fix corruption in a database if required. Download the trial version of the MS SQL toolkit from here to check how it works.

free download

Use the SQL Server Agent job for better control over taking automatic backup of SQL database.

EndNote

This blog discussed the two different methods to take SQL Server database backup automatically. If you need a point-and-click interface to automate backup on a scheduled basis, you can use the Maintenance Plan Wizard to create a backup maintenance plan. Consider using the SQL Server Agent jobs as explained in the blog for more control and configuration options for scheduling automatic backups.

About The Author

Charanjeet

Charanjeet is a Technical Content Writer at Stellar®who specializes in writing about databases, e-mail recovery, and e-mail migration solutions. She loves researching and developing content that helps database administrators, organizations and novices to fix multiple problems related to MS SQL and MySQL databases and Microsoft Exchange.

Best Selling Products

Stellar Data Recovery Professional for Windows

Stellar Data Recovery Professional for Windows

Stellar Data Recovery has the right Windows Recovery tool for all your data recovery

Read More
Stellar Data Recovery Professional for Mac

Stellar Data Recovery Professional for Mac

Stellar Data Recovery for Mac program performs safe..

 

Read More
Stellar Photo Recovery

Stellar Photo Recovery

A comprehensive photo recovery software to restore photos, music & video files

 

Read More
Stellar Repair for Video

Stellar Repair for Video

Powerful video repair tool for repairing corrupt or damaged MOV and other video files

 

Read More

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Image Captcha
Refresh Image Captcha

Enter Captcha Here :

Table of Contents    arrow

  1. Methods to Schedule a Backup
  2. EndNote

Categories

offer banner

Related Posts

related post
Toolkit for MS SQL

How to Restore Specific Table(s) from SQL Database Backup File?

Stellar Author Saba Zehra Rizvi November 16, 2021 Read More
related post
Toolkit for MS SQL

How to Identify Corrupted SQL Backup File

Stellar Author Charanjeet Kaur February 24, 2021 Read More
related post
Toolkit for MS SQL

How to Recover SQL Server Database from a Corrupt Backup File?

Stellar Author Charanjeet Kaur April 9, 2020 Read More

Free Trial for 60 Days

Technology You Can Trust A Brand Present Across The Globe

  • tuv1
  • tuv2
  • Nist
  • hipa

Stellar Official Website

Stellar Data Recovery Inc.
48 Bridge Street Metuchen,
New Jersey 08840,
United States

ALSO AVAILABLE AT

ALSO AVAILABLE AT

About

  • About us
  • Career
  • ISMS Policy
  • Privacy Policy
  • Terms of Use
  • License Policy
  • Refund Policy
  • End User License Agreement

RESOURCES

  • Blog
  • Articles
  • Product Videos
  • Knowledge Base
  • Case Studies
  • Whitepapers
  • Software Catalog

NEWS & EVENTS

  • News
  • Events

PARTNERS

  • Affiliates
  • Resellers
  • Distributors

Useful Links

  • Contact Us
  • Support
  • Special Offers
  • Student Discounts
  • Awards & Reviews
  • Downloads
  • Store
  • Sitemap

Stellar & Stellar Data Recovery are Registered Trademarks of Stellar Information Technology Pvt. Ltd. © Copyright 2023 Stellar Information Technology Pvt. Ltd. All Trademarks Acknowledged.

Follow Us Facebook Twitter Linkedin Youtube

  • Notron
  • dcma
Subscribe

Subscribe to our newsletter!

Its good time to subscribe and get the latest promtion

With subscribing you agree with our Terms & Conditions

This website uses cookies in order to provide you with the best possible experience and to monitor and improve the performance of the site in accordance with our cookie policy. You can reject cookies at any time in your browser settings.

cookies-cross
Got it