Feature Req: one folder per DB using <AUTO> variable
bdill
Posts: 42 Bronze 2
With frequent log backups for multiple databases, my backup folder gets unweildy with several hundred files in the same folder. It would be very nice to be able to specify a subfolder to use for each database via the <AUTO> variable.
ex:
<DATABASE>\<DATABASE>_<TYPE>_<DATETIME yyyy-mm-dd>
Then each database would have its own subfolder of the same name.
ex:
<DATABASE>\<DATABASE>_<TYPE>_<DATETIME yyyy-mm-dd>
Then each database would have its own subfolder of the same name.
Comments
1) insert the <database> tag into the folder name when performing the backup, so for example the folder is "c:\backups\<database>\" and the filename is "<auto>.sqb".
2) Using the "Tools > Options" menu, you can change the default to insert this tag automatically for all subsequent backup tasks and job tasks.
If you need any more information on how this works, feel free to follow-up.
Hope that helps,
Jason
I didn't think that the "backup folder" could be "variable-ized". I was thinking that only the "file name format" had that feature.
Thanks again!
If using database names as part of the path, you do need to be careful with the naming conventions if you have multiple instances containing databases of the same name, otherwise backups of one database from one instance may overwrite backups of an identically named database from another instance.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8