SQL Media Set Options
SQL Media Set Options
The following are the few options that operate on the database backup set
that would be created using backup database command
WITH Options
The WITH clause is used with the BACKUP command in case we have
additional backup requirements.
INIT: INIT is used to create a new backup set; NOINIT is used for
appending the backup to the existing backup set. The NOINIT parameter is
used mostly when you backup the database to a tape device.
SKIP: The skip parameter is used to skip the expiration check on the
backup set.
NOREWIND: This parameter is used to keep a tape device open and ready
for use
STATS: The STATS option is useful to get the status of the backup
operation at regular stages of its progress.
BACKUP DATABASE Demo TO
DISK = 'D:\PowerSQL\SQLShackDemoATC_1.BAK',
DISK = 'f:\PowerSQL\SQLShackDemoATC_2.BAK',
DISK = 'f:\PowerSQL\SQLShackDemoATC_3.BAK',
DISK = 'f:\PowerSQL\SQLShackDemoATC_4.BAK'
WITH INIT, NAME = 'FULL SQLShackDemoATC backup', STATS = 5
https://docs.microsoft.com/en-us/sql/t-sql/statements/backup-transact-sql?
view=sql-server-ver16