ADSM-L

Re: Autodelete of SQL backups

2015-10-04 17:32:30
Subject: Re: Autodelete of SQL backups
From: Lawrence Clark [mailto:Larry_Clark AT THRUWAY.STATE.NY DOT US]=20
To: ADSM-L AT VM.MARIST DOT EDU=20
Hi Del:
I tried it with no luck. I'm wondering if the option is not available in =
the
version I'm running:

ADSTAR Distributed Storage Manager
ADSMConnect Agent for Microsoft SQL Server - Version 1, Release 1, Level 1
(C) Copyright IBM Corporation 1997, 1998. All rights reserved.

ACO2518E -- Invalid command line parameter: /adsmautodelete:*

>>> hoobler AT US.IBM DOT COM 03/22/00 03:37PM >>>
Larry

Close.  You need an "*" on the "/ADSMAUTODELETE" command:

     /ADSMAUTODELETE:*

Thanks,

Del

----------------------------------------------------
Del Hoobler
Del Hoobler
IBM Corporation
hoobler AT us.ibm DOT com=20


Lawrence Clark <Larry_Clark AT THRUWAY.STATE.NY DOT US>@VM.MARIST.EDU> on
03/22/2000 01:38:00 PM

Please respond to "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>

Sent by:  "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>


To:   ADSM-L AT VM.MARIST DOT EDU=20
cc:
Subject:  Re: Autodelete of SQL backups



Del: With the variable substitution I assume this would be correct:

%sql_dir%\sqldsmc /backupfull:* /adsmoptfile:%sql_dir%\dsm.opt
/logfile:%sql_dir%\sqlfull.log >> %sql_dir%\sqlsched.log
%sql_dir%\sqldsmc /adsmautodelete /adsmoptfile:%sql_dir%\dsm.opt
/ifolder:30


>>> hoobler AT US.IBM DOT COM 03/22/00 01:27PM >>>
Larry,

Yes.  That will work.

Many customers put the /ADSMAUTODELETE command at
the bottom of the batch files that do their scheduled backup.
That way, after their backup is completed, it is followed
by a deletion of their old backups.  Something like:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
sqldsmc /backupfull:*
sqldsmc /adsmautodelete:* /ifolder:30
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Take a look at the sample batch file called SQLFULL.SMP
that we shipped with the latest PTF for SQL (1.1.2).
It contains an example.

Thanks,

Del

----------------------------------------------------
Del Hoobler
Del Hoobler
IBM Corporation
hoobler AT us.ibm DOT com=20


Lawrence Clark <Larry_Clark AT THRUWAY.STATE.NY DOT US>@VM.MARIST.EDU> on
03/22/2000 01:04:01 PM

Please respond to "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>

Sent by:  "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>


To:   ADSM-L AT VM.MARIST DOT EDU=20
cc:
Subject:  Re: Autodelete of SQL backups



If I understand your note, I all set and only need to add a batch file =
like
so:
sqldsmc /adsmautodelete:*  /ifolder:30
then schedule that file as a command for execution
and associate the node(s) with that schedule, e.g.:
Policy Domain Name: MS-SQLNT
     Schedule Name: SQL-DAILY
  Associated Nodes: LCMSSQL MSSQLAFS MSSQLREM MSSQLSMS


adsm> q copy ms-sqlnt active ms-sqlclass f=3Dd
            Policy Domain Name: MS-SQLNT
               Policy Set Name: ACTIVE
               Mgmt Class Name: MS-SQLCLASS
               Copy Group Name: STANDARD
               Copy Group Type: Backup
          Versions Data Exists: 2
         Versions Data Deleted: 0
         Retain Extra Versions: 30
           Retain Only Version: 0
                     Copy Mode: Modified
            Copy Serialization: Shared Static
                Copy Frequency: 0
              Copy Destination: NTDISKBACK
Last Update by (administrator): ADMIN
         Last Update Date/Time: 11/23/99   14:12:16
              Managing profile:



>>> wzehnder AT JCPENNEY DOT COM 03/22/00 11:41AM >>>
Yes.  Set up a command file on the client server with the following -

sqldsmc /adsmautodelete:* /adsmoptf:xxx.opt /ifolder:21

If you use the default opt file you can leave that parm off and change the
ifolder parm to any number you feel
is appropriate.  In this case I'm deleting everything older than 21 days.
But, they don't actually get
deleted, as I've learned, they just become inactive.  So you will want to
create a new mgmt class with versions
deleted set to 0.  Then put the following in the xxx.opt file -

Include * newmgmtclass

Then bounce the sql scheduler service.

Oh, you'll also need to create a command schedule to execute the command
file on the client.

Lawrence Clark wrote:

> Hi:
> I didn't see the beginning of this thread. Is there a way to automate =
the
deletion of older MS-SQL backups?
>
> >>> wzehnder AT JCPENNEY DOT COM 03/22/00 09:11AM >>>
> Thanks, thats what I did wrong.  Question, I created the new mgmt class
and
> last nights incremental is bound to that class, but the other inactive
backups
> are still bound to the old mgmt class.  Is there a way to rebind them to
the
> new mgmt class, or do they have to age off according to the retain only
> parameter of the old mgmt class?
>
> Chris Zaremba wrote:
>
> > Bill,
> >
> > >So I ran the autodelete
> > >command, successfully, and 2072 of 2373 objects were deleted.  When I
> > >check the node with the query occupancy command, it still shows all
the
> > >versions exist.  Will I need to wait for the tapes that the deleted
> > >backups reside on get reclaimed, or is something else going on?  I =
ran
> > >the autodelete last Thursday and expiration and reclamation have run
> > >several times since then.
> >
> > No, the query occupancy numbers will be adjusted after the expiration
> > process is run...if the backups are actually deleted.  Does the
management
> > class to which the SQL backups are bound have the versions deleted =
copy
> > group parameter set to 0 as recommended in the TDP client User's =
Guide?
> > If not, then the objects will be retained in the server storage pool
until
> > the retention period (retain only parameter) expires.
> >
> > Chris Zaremba
> > TDP Client Development
> > internet  zaremba AT us.ibm DOT com=20
>
> --
> Cordially,
>
> Bill Zehnder
> 972-431-8733  Fax 972-531-8733

--
Cordially,
Cordially,

Bill Zehnder
972-431-8733  Fax 972-531-8733
<Prev in Thread] Current Thread [Next in Thread>