Comments
2 comments
-
via 1 script line like you can do single databases
The only way to back up all system databases using a single script is to name each of the system database e.g.EXEC master..sqlbackup 'sql "BACKUP DATABASES [master, model, msdb] TO DISK = ...
You may need to add more depending on whether you are running replication and want to include the system replication databases. -
I believe this is exactly what I'm looking for.
Add comment
Please sign in to leave a comment.
is there a way to back up all the system databases via 1 script line like you can do single databases? Or do I have to do each system database seperately as in the script?