Creating Multiple Backup Files
source link: https://blog.sqlauthority.com/2021/02/18/sql-server-creating-multiple-backup-files/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
SQL SERVER – Creating Multiple Backup Files – Stripped
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.
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.
Reference: Pinal Dave (https://blog.sqlauthority.com)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK