08-29-2012 09:56 AM
Hi All,
I have a below requirement. I need to take a backup image and I need to set the retention level to particular date. For example,
I need to create a new image and set eth expiry till Apl-15-2018.
Can any one help me on this? And also is there any command to check what are all the manual retention level currently existing in NBU. Thanks for your reply.
Regards,
RAJ
Solved! Go to Solution.
08-29-2012 10:08 AM
bpretlevel will show you what is set. You add new ones with this command (see manual foe syntax) or use the gui Host Properties > Master server > Retention levels.
You can change any existing one, apart from level 9 - this is always infinity.
You can set a specific date manually :
bpexpdate -backupid <backupid> -d <date>
(or could use -m <media id> instead of backupid)
See the man page for the correct date syntax.
martin
08-29-2012 10:08 AM
bpretlevel will show you what is set. You add new ones with this command (see manual foe syntax) or use the gui Host Properties > Master server > Retention levels.
You can change any existing one, apart from level 9 - this is always infinity.
You can set a specific date manually :
bpexpdate -backupid <backupid> -d <date>
(or could use -m <media id> instead of backupid)
See the man page for the correct date syntax.
martin
08-29-2012 10:55 AM
Thanks martin for the reply. So by using bpexpedate command, we can set the retention of an existing image to specific date.
And right now, I dont have any image. I am just good to go with the createion of new policy. So I want to set the deceided retention on the schedule itself. we will be doing this for specific servers and specific directories. Could you be able to suggest me a way to set the desired retention level from the schedule itself?
RAJ
08-29-2012 11:32 AM
Thanks a lot Martin. Got it :)
08-29-2012 11:44 AM
You can't ...
From the schedule, you can only set a retention period, that is x days, hours/ days/ weeks / months relative to when the backup is started.
If you wish to set an exact expire time, you have to do it from the command line/ bpexpdate.
Martin