The numerical part of the backup-id is a 10-digit timestamp in the "seconds
past the epoch" format.
If you know the approximate date and time of the backup, you can get the
backupid-id with
bpimagelist -d mm/dd/yyyy -e mm/dd/yyyy -idonly -U
(where -d and -e are specifying a date-range to look in).
There are various programs around for converting timestamps, but thanks to
someone on this list, I know there is a handy little option to bpdbm, -ctime,
i.e.
# bpimagelist -class myclass -hoursago 24 -idonly
Time: Fri Jul 08 20:02:10 2005 ID: myhost1_1120849330 FULL (0)
# bpdbm -ctime 1120849330
1120849330 = Fri Jul 8 20:02:10 2005
(If you want to confirm the date and time of the image that you found).
Mike
________________________________
From: veritas-bu-admin AT mailman.eng.auburn DOT edu on behalf of Carlos
Alberto Lima dos Santos
Sent: Sat 09/07/2005 13:14
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RES: [Veritas-bu] Veritas 4.5 MP6 Datacenter - Changing expiration
dates / recalculating
The backup ID can be obtained listing the images on tape, the
backup ID is the image name. Ex. ServerName_123456789
T+
Carlos Alberto Lima dos Santos
Eng. de Computação
Campinas-SP - Brasil
* carlos_listas AT yahoo.com DOT br
icq 123987362
On Hands
VERITAS NetBackup (tm) 5.1 System Administrators Guide for UNIX, Volume I
http://seer.support.veritas.com/docs/268090.htm
VERITAS NetBackup (tm) 5.1 System Administrators Guide for UNIX, Volume II
http://seer.support.veritas.com/docs/268091.htm
VERITAS NetBackup (tm) 5.1 Troubleshooting Guide for UNIX and Windows
http://seer.support.veritas.com/docs/268196.htm
-----Mensagem original-----
De: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] Em nome de Eric
Ljungblad
Enviada em: sexta-feira, 8 de julho de 2005 22:14
Para: Tim Hoke
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Assunto: RE: [Veritas-bu] Veritas 4.5 MP6 Datacenter - Changing expiration
dates / recalculating
I have tried the -m for media but it indicates to use either the policy name
or backupID -
I have been attempting to use the backupid with no luck?
It indicates that NO ENTITY WAS FOUND ?
I then refresh and re-run the images on media and it still indicates 90 days
retention level?
Thanks
V:\VERITAS\NetBackup\bin\admincmd>bpexpdate -backupid condor-p_1120436686
-client condor-p -policy condor-snap-resubmit -recalculate -ret 8 Are you
SURE you want to recalculate expiration dates on all images that meet the
following criteria:
client condor-p
policy condor-snap-resubmit
backupid condor-p_1120436686
retention will be changed to 8(1 year)
Continue?(y/n)y
no entity was found
V:\VERITAS\NetBackup\bin\admincmd>bpexpdate -backupid Condor-p_1120436686
-client condor-p -policy condor-snap-resubmit -recalculate -ret 8 Are you
SURE you want to recalculate expiration dates on all images that meet the
following criteria:
client condor-p
policy condor-snap-resubmit
backupid Condor-p_1120436686
retention will be changed to 8(1 year)
Continue?(y/n)y
no entity was found
V:\VERITAS\NetBackup\bin\admincmd>
-----Original Message-----
From: Tim Hoke [mailto:thoke AT northpeak DOT org]
Sent: Friday, July 08, 2005 5:33 PM
To: Eric Ljungblad
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Veritas 4.5 MP6 Datacenter - Changing expiration
dates / recalculating
You'll be looking for a form of the bpexpdate command.
Something along the lines of bpexpdate -m <media id> -recalculate -retention
X
-Tim
On Jul 8, 2005, at 7:06 PM, Eric Ljungblad wrote:
>
> 4.5(mp6) 1 Windows 2003 master / media server.
>
> We have 4 tapes from last weekend backup of Lawson and oracle from HP
> UX backups done On our windows 2003 master / media server with
> 4.5(mp6) Windows master.
>
> The current retention is set for 3 Months on tapes HPW101, HPW102,
> HPW103 & HPW104
>
> Can we change the Retention to hold for 1 year without duplicating or
> freezing these media ID's Using the bpexpdate command or a different
> command?
>
>
> Thanks
>
> Eric Ljungblad
> Copley Information Services
> La Jolla, California
>
>
>
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis.
Instale o discador agora! http://br.acesso.yahoo.com/
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|