Re: SQL Server Backup
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 05/14/04
- Next message: Ashish Ruparel [MSFT]: "RE: SQL DB with Video/audio content?"
- Previous message: Ashish Ruparel [MSFT]: "RE: multiple instances of sql - 2 Gb memory limitation?"
- In reply to: Peter: "SQL Server Backup"
- Next in thread: Peter: "Re: SQL Server Backup"
- Reply: Peter: "Re: SQL Server Backup"
- Reply: SangHun: "Re: SQL Server Backup"
- Reply: Peter: "Re: SQL Server Backup"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 May 2004 09:27:04 +0530
Hi,
Rather than using the Maintenance plan I suggest you to write a small batch
file perform the backup.
Contents inside batch file:- (Backup.bat)
del c:\backup\dbname_old.bak
copy c:\backup\dbname.bak c:\backup\dbname_old.bak
OSQL -Usa -Ppassword -S
Servername -ic:\backup\backup.sql -oc:\backup\backup.log
(Save the file as backup.bat)
Inside the backup.sql
backup database dbname to disk='c:\backup\dbname.bak' with init
How to schedule
--------------------
In Enterprise manager, SQL Agent , Jobs , Schedule this Backup.bat file to
execute daily once.
Note:
Ensure that SQL Agent service is running
Thanks
Hari
MCDBA
"Peter" <anonymous@discussions.microsoft.com> wrote in message
news:cdad01c43958$8b0ff2c0$a101280a@phx.gbl...
> We would like to keep only 1 copy of database backup as we
> run out of disk space.
>
> However, if we choose "Remove Files Older than 1 Day" in
> the Database Maintenance Plan, it will remove the previous
> day backup even though last night backup is not successful.
>
> Is there any suggestion ?
>
- Next message: Ashish Ruparel [MSFT]: "RE: SQL DB with Video/audio content?"
- Previous message: Ashish Ruparel [MSFT]: "RE: multiple instances of sql - 2 Gb memory limitation?"
- In reply to: Peter: "SQL Server Backup"
- Next in thread: Peter: "Re: SQL Server Backup"
- Reply: Peter: "Re: SQL Server Backup"
- Reply: SangHun: "Re: SQL Server Backup"
- Reply: Peter: "Re: SQL Server Backup"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|