Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends I am new to Database and i have to automate a backup, restore process
i have 8 databases on one server and i have to take differential backup of those database every week and restore them one another server one after another,
due to big size of databases i want it to do in three steps for each database
Steps should be as below:-

1. Take Backup of First Database
2. Restore the same on another server
3. Delete the Backup file(.bak, Due to Storage issue)

And then repeat the process again for next database.

Thank you in advance!
Posted
Updated 9-Nov-15 5:09am
v3
Comments
Corporal Agarn 9-Nov-15 10:38am    
For #3 that would be a storage issue not a memory issue.

1 solution

There are many ways for making it work.

You can create a job for doing this.

Following is one of those which will Backup and restore dbase.
https://www.mssqltips.com/sqlservertip/2842/how-to-automate-sql-server-restores-for-a-test-server/[^].
 
Share this answer
 
Comments
Member 11882991 21-Dec-15 10:42am    
i think you didn't get my point i have list of database and i don't have that much space to keep backup file of all the backup database at a time that's because i need to perform this task in three steps

step1 Backup First database
step2 Restore first database
step3 Drop first backup file(not database)

and then do the same for for another(IInd database).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900