The following article will explain how to backup and restore databases in SQL Server using PowerShell. PowerShell is a very popular shell for operative systems used to automate tasks using the command line and scripts. PowerShell was created by Microsoft in Windows, but now it is supported in Linux and macOS also. More…
Even though Azure SQL Database provides built-in backup, you may still want to create a local copy of your Azure SQL database. This could be handy for example when you want to keep database backup copy for free longer than allowed by Microsoft Azure built-in tools which is usually 7 to 35 days, depending on your service tier. Here we will explain in details how to backup Azure SQL Database to Local Machine.
The question “How to automate SQL Server database backups” has several answers and here we will review all of the best options. But first let’s define what SQL Server database backup automation stands for. SQL Server backup automation is a process that includes at least the following steps:
- Run SQL Server backup for selected databases on schedule
- Compress & encrypt the backups
- Upload the backup to a remote destination – network, NAS, FTP on one of the cloud storages (Dropbox, AWS, OneDrive, SkyDrive, etc..)
- Send email notification on backup success or failure
The most popular SQL Server backup automation options that we review here are:
Microsoft SQL Server Management Studio & SQL Server Agent
Ola Hallengren script
or you can just jump straight to the Conclusion
If you are looking for the tutorial on how to backup SQL database automatically with SSMS just follow the instructions below. Note however that there are better ways to backup SQL Server database than SSMS. This is especially true when you are running MS SQL Server Express that lacks SQL Server Agent – just use SQLBackupAndFTP instead of the method below.
You can run scheduled backups of a remote SQL server using SQLBackupAndFTP. The standard BACKUP DATABASE command would not work on a remote SQL Server, so scripts would be the only option. Scripts are not as good as *.bak files because they are larger, do not support differential backups and should be used only if you do not have an option to create *.bak files. If you want to know more – read a good explanation why remote SQL backups are such a pain. More…
This step-by-step guide helps a user having a Microsoft Azure account to create Microsoft Azure SQL Server on Linux (Ubuntu) (free license) and to use the SQL server on Ubuntu with SSH terminal. More…
If you backup large SQL Server databases with the help of SQLBackupAndFTP then we want to give you some useful recommendations that may speed up the backup process. More…
Being a managed cloud database Azure SQL Database provides built-in functionality for automatic database backups. It allows you to restore your database to any point in the past and those backups are kept in a reliable geo-redundant storage. So why do we need other tools like SqlBackupAndFtp to backup of Azure SQL Database? This can be the case when you need to get a copy of your database locally, outside Azure infrastructure. In this post, you can find a step-by-step guide on how to backup Microsoft Azure SQL Database with the help of SQLBackupAndFTP.
Choosing a database backup strategy is crucial because it determines how data in your SQL Server database is protected. You can read more about database backup strategies, but here we are going to present you some statistics on how SQLBackupAndFTP users backup their databases. The numbers are based on a sample of about a thousand users. More…