Topic: DataBase Auto Backup
DataBase Auto Backup
Аll MU Server admins, this guide will help you backup your database using sql job agent.
Above is the Script which will backup your database:
DECLARE @ads varchar(70)
SET @ads = N'D:\MuServer\DBAutoBackUp\'+REPLACE(REPLACE(CAST( getdate() AS varchar), ' ', '_'), ':', '_')
SELECT @ads
BACKUP DATABASE [MuOnline] TO DISK = @ads WITH INIT , NOUNLOAD , NAME = N'MuOnline AutoBackUp', NOSKIP , STATS = 10, NOFORMAT
1. Create a folder called "DBAutoBackUp" in "D:\MuServer\" folder
2. Now go to Start>All programs>Microsoft SQL Server>Enterprise Manager
3. Follow the images below:
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
4. Ok, when you finish, you may Right Click the Job and select Start Job
5. The job continue to occure depends on the Occure Time you set for that Job.
Credit:
- 6efa