Comments
2 comments
-
Hi Guant,
If I understand correctly, you want to create a folder (with date) and put all the backup files for that particular date into this folder.
If I have understood your requirement correctly then you can use tags for this. You can set default backup folder path using tags via Tools > Server Options .
For your requirement you can use a tag like in below script:
EXECUTE master..sqlbackup '-SQL "BACKUP DATABASE [Test] TO DISK = ''C:\temp\sql2000\<DATETIME yyyymmdd>\<AUTO>.sqb'' WITH INIT"'
This will create a folder (with yyyymmdd as its name) and put the backup files in it. If the folder doesn't exist then SQL Backup will create it or else it will use the existing one.
Thanks,
Priya -
Thank you! That did the trick!!
Add comment
Please sign in to leave a comment.
Thank you!