I have a Microsoft SQL Server 2005 DB server. In the DB server, I have around 250 user databases. I have to take a back up of all these databases. Since, manually taking backup consumes lot of time, I am looking for a Batch script or DB script which will automatically take the backup of all the 250 databases. Can anyone pls help on this?
|
migrated from stackoverflow.com Jul 26 '12 at 7:40
|
http://beyondrelational.com/modules/2/blogs/88/posts/10152/sql-server-automated-all-databases-backups-script.aspx for sure will cover all your needs. It gets diferential, full and transactional backups done on really easy and understandable scripts. |
|||||
|
|
Create SQL Job for this purpose; if properly configured sql job will take backups automatically so there is no need for complex scripts i guess. |
|||
|
|
Another method http://beyondrelational.com/modules/2/blogs/70/posts/10895/backup-all-databases.aspx Create that procedure and schedule it as a job |
|||
|
|
|
You could also use powershell: http://blogs.msdn.com/b/buckwoody/archive/2009/06/25/use-powershell-to-backup-all-user-databases.aspx |
|||||||||||
|
|
Note : First Create a folder on D: Drive. D:\User_DataBackup\ . Step 1. Create a procedure that are given below.
Step 2:Execute the above procedure.
You can also schedule this procedure. This procedure is tested hopefully it will help. |
|||
|
|
|
Develop a Maintenance Plan Sql server has this amazing feature where it will create the script and job for you Step 1
Right click on Step 2 Name your Plan
Step 3
Select Database Backup Task
Step 4 Configure The Task, select Databases , Folder location, Type of Backup (Full, differential,Transaction log) connection etc.
Step 5
Configure the Job Schedule
i recommend having a separate plan for system database and you user databases to avoid any kind of problem helping Links |
|||
|
|




