以下SQLCMD命令:
sqlcmd -E -S $(ESCAPE_SQUOTE(SRVR))
-d master
-Q "EXECUTE [dbo].[DatabaseBackup] @Databases = 'USER_DATABASES',
@Directory = N'B:\MSSQL13.SQL2016\MSSQL\Backup',
@BackupType = 'FULL',
@Verify = 'Y', @CleanupTime = 48,
@Compress = 'Y',
@ChangeBackupType = 'Y',
@CheckSum = 'Y'" -b
为所有备份生成单个文件夹,是否有办法将其备份直接插入到根目录B:\MSSQL13.SQL2016\MSSQL\Backup
?
欢迎任何帮助。
谢谢。