on 10-17-2011 8:44 PM
Hi,
I need to execute daily backup for sql server on windows and also need to delete the old backup in the backup folder.
I am able to do backup by right click on db sid but how delete old backup?
Thanks & Regards,
Subba Rao
Hello Subba Rao,
Are you trying to schedule the daily backup on TSM or on local server disk itself ?
In case of TSM, you do not need to delete the old backup, TSM/tape team will automatically schedule that for you.
In case of local disk backup, you can schedule a windows deletion batch program to delete the old backup according to date filter may be. Or we can utilize the Maintenance Plan strategy as well.
What is SQL Server Version ? We can schedule the SQL backup and deletion of previous/old backup via a single Maintenance plan. Please go through the documentation.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Why you need to keep all the old backups for a week ? If the backup is on Disk then it will be a huge disk consumption I guess, depending on the backup dump size.
However, you can achieve this via Maintenance plan. Please read the documentation links and their related links as well -
http://msdn.microsoft.com/en-us/library/ms189036.aspx
http://msdn.microsoft.com/en-us/library/ms187658.aspx
One more advantage is, we can schedule multiple tasks/backups in a single Maintenance Plan Job - For e.g. the full online backup, transactional log backup, other backups - master, sdb etc., all backup deletions. Several other options are available, but you need to explore that.
Thanks
Hi Subba Rao,
as par my knowledge you are tacking backup through SQL studio Manager?
if yes than u have to schedule backup through studio manager and click in overwrite existing file ...so need to delete old backup file.
Regards,
Hiten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How do you take backup? By using brtools? or 3rd parties
Best regards,
Orkun Gedik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.