Easy Multiple Database Backups
bbaker
Posts: 7
This really seems like a great solid product but I am baffled by the lack of easy multiple database backups. From what I gather it’s possible to backup multiple databases using a specialized stored procedure but this seems rather messy. With over 400 SQL databases, I'm not about to try to create 400 individualized backups!
Is “point and click†multiple database backup something that’s going to be added in a future release? As a potential customer I can say we would be much more interested and inclined to buy with such a feature. Without that key piece though I have to say that we are stuck using the MS SQL 2000 maintenance plans.
Brad Baker
Is “point and click†multiple database backup something that’s going to be added in a future release? As a potential customer I can say we would be much more interested and inclined to buy with such a feature. Without that key piece though I have to say that we are stuck using the MS SQL 2000 maintenance plans.
Brad Baker
Comments
BACKUP DATABASES [*] TO DISK = ....
BACKUP DATABASES [pubs, northwind, master, msdb] TO DISK = ....
BACKUP DATABASES EXCLUDE [master, model, msdb] TO DISK = ...
There is a wizard to assist you in setting up a SQL Server Agent job to run these multiple database backup.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
The reason for breaking up the backups so much is to limit the amount of time that the database backups run. I.E. We don't want a database backup consuming all the server resources for hours and hours at a time (even if it is during less busy hours). As an application service provider, our customers access our systems all hours of the day (and night) thus any prolonged hit in performance has to be kept to a minimum.
Based on what you said below about the syntax it sounds like we would still be manually writing and maintaining 7 different backup queries per server. So for instance
BACKUP DATABASES [database1,database 2,.....database20] TO DISK
BACKUP DATABASES [database21,database 22,.....database40] TO DISK
BACKUP DATABASES [database41,database 42,.....database60] TO DISK
Think about how painful maintaining database lists would become using this approach. To make things even more painful, our databases have a naming convention: customer#_X_shortname. (For example A0001_S_redgate) Try typing 200 of those without making a mistake!
It would take forever to get them all typed in. I suppose we could somehow export a list of names, reformat it, and break it up but it’s still going to be a major headache to maintain. On the other hand if you have a GUI with a list of databases with checkboxes it becomes much easier. So for instance:
[X] A0001_S_redgate
[X] A0001_T_redgate
[X] A0002_S_microsoft
[ ] A0002_T_microsot
[X] A0003_S_netscape
[X] A0003_T_netscape
[X] A0004_S_sun
[X] A0004_T_sun
You can quickly tell in the list above that A0002_T_microsoft is not being backed up. And it’s super easy to just go through and add or remove databases. That’s what we are looking for not some clumsy hand written stored procedure.
I hope at some point you will make multiple database backups as simple as single database backups with a point and click interface. If so then I would definitely be interested in trying out a demo and discussing pricing. Until then though I’m afraid we can't even consider your product.
Best Regards
Brad Baker
One limitation you might encounter is the length of the command that gets generated, which might exceed the maximum permissible length, depending on how long your database names are.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
We want to define multiple backup "jobs" each with their own set of databases, and have them run at diferent times.
Brad
Brad
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Brad
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Yes, it would be easier if it was in the interface but I too have over 300 databases on my primary SQL Server (several others have over 100 databases each) and I didn't want a custom procedure for each one. Also, I do a full backup every night for my primary server and it only takes a few hours. The script I use is generic and I use it on all my servers for their backups. You should be able to modify it fairly easily for your use.
With that said would it make more sense to do a full backup once a week and then differential backups every night if you don't want to impact performance very much?
My script that is on each server in the Master DB and called from a scheduled job:
Good luck!