Let me explain the scenario
NB version = 220.127.116.11
OS = Redhat Linux 2.6
We have RMAN backups which were previously backed up using SLP ( 1 Month Onsite + 1 Month Offsite ). in mid March 2014 Some once changes SLP retention (2 Month Onsite + 2 Month Offsite ). Which was wrong .. And we have changed it back on 19th May 2014
So in normal case, if backup would have been taken on 1st April 2014 then it should be in our Netbackup environment till 1 June ... this is what we want.
but currently Huge No. of Duplication jobs running in our NB .. when I checked some of the Duplication jobs, it showes Backup image dates of March & April 2014. which is needless.
In simple terms I don't want to run duplication jobs for those images whose Retention period is ( 2 month Onsite + 2 Month Offsite ). These backup images are taken in between 15th March ( when retention level changed ) till 20th May ( when we reverted back those changes )
No matter those images are in ACTIVE, PENDING or IN PROGRESS status .. I don't want to run Duplication jobs for above mentioned period backup images.
SLP name = lou_rman_slp \ sim_rman_slp
please help me with ./nbstutil command syntax to achieve this
Solved! Go to Solution.
You will need to identify the jobs that you want to cancel, compile a list of backup-id's, then cancel them with this command:
nbstlutil cancel -backupid <backupid>
You can add the list of backup id's to a text file (e.g. /tmp/image.txt), then cancel them using a 'for' loop:
for i in `cat /tmp/image.txt`
nbstlutil cancel -backupid $i
Not true. 'cancel' is permanent.
This is what NBU Commands manual says about the 'cancel' option:
Permanently cancels storage lifecycle policy processing according to how the
-lifecycle, -before, -after, and -destination options are used:
■ If the -lifecycle option and the -destination option are both used,
nbstlutil permanently cancels processing for the existing images that
the options identify.
■ If neither of the options is used, nbstlutil permanently cancels all pending
copies for all existing images that the storage lifecycle policies manage.
■ If only a storage lifecycle policy (-lifecycle) is specified, nbstlutil
permanently cancels all pending copies of the existing images that it
■ If only a destination is specified, nbstlutil permanently cancels all pending
copies that are bound for that destination, for all storage lifecycle policies.
Any new images that are created after this command are processed normally.
If all pending copies of an image are canceled, that image is marked as
complete. The destination name is the name of a storage unit or a storage unit
group that is used in a storage lifecycle policy.