One of my long-term clients (Comprehensive Database Performance Health Check) recently asked me question if I know a way of creating multiple backup files for one backup files. Of course, there is a way and it is a very easy way. Let us learn it today.
Creating Multiple Backup Files
It is very easy to take one backup and split it and distribute it. At the same time, it is equally easy to take multiple backups files from SQL Server itself. There are two different ways to do it. One via SSMS and another via T-SQL. Let us learn both of them here.
SSMS
In SSMS, right-click on the database, go to tasks and select the option backup. Over here is the destination where you can provide multiple locations where you want to take backup. On the screen, I have provided the same directory but you can also select another directory as well.
Well, that’s it. It is that simple.
T-SQL
If you want to do that with T-SQL, here is the script.
BACKUP DATABASE [CollationTest] TO DISK = N'D:\data\backup1.bak', DISK = N'D:\data\backupcopy.bak' WITH STATS = 10 GO
Let me know if you want me to create a video on this topic or not on backup files. Remember, here you are splitting one file into multiple files and you will need all the files to restore your backup.
Here are my few recent videos and I would like to know what is your feedback about them. You can subscribe to my youtube channel here.
- Forwarded Records and Performance – SQL in Sixty Seconds #155
- Hide Code in SSMS – SQL in Sixty Seconds #154
- Zoom in SSMS – SQL in Sixty Seconds #153
- Transfer Schema of Table – SQL in Sixty Seconds #152
- Find a Table in Execution Plan – SQL in Sixty Seconds #151
Reference: Pinal Dave (https://blog.sqlauthority.com)
First appeared on SQL SERVER – Creating Multiple Backup Files – Stripped