How to convert the ctime of directory names and backup IDs to human readable format

Article: 100000528
Last Published: 2015-02-02
Ratings: 2 0
Product(s): NetBackup & Alta Data Protection

Description

Backup image names and directory names in the NetBackup images directory are written in ctime (change timestamp), also known as a Unix timestamp.

On UNIX/Linux machines: /usr/openv/netbackup/db/images/<client_name>
On Windows machines: install_path\NetBackup\db\images\<client_name>

This time can be converted to a human readable format by using the bpdbm binary on the Primary/Master Server.

On UNIX/Linux machines: /usr/openv/netbackup/bin
On Windows machines: install_path\NetBackup\bin

To convert the ctime to a human readable format, run the following command syntax:

bpdbm -ctime <value>

Examples:

Converting the ctime of a directory in the images directory into a human readable format

C:\Program Files\VERITAS\NetBackup\db\images\client_01>dir
Volume in drive C has no label.
Volume Serial Number is 14D2-2CF9
Directory of C:\Program Files\VERITAS\NetBackup\db\images\client_01
12/18/2006  08:36 AM    <DIR>          .

12/18/2006  08:36 AM    <DIR>          ..
12/12/2006  06:11 PM    <DIR>          1165000000
12/19/2006  02:13 PM    <DIR>          1166000000
              0 File(s)              0 bytes
              4 Dir(s)  21,506,062,848 bytes free

C:\Program Files\VERITAS\NetBackup\bin>bpdbm -ctime 1165000000
1165000000 = Fri Dec 01 13:06:40 2006

C:\Program Files\VERITAS\NetBackup\bin>bpdbm -ctime 1166000000
1166000000 = Wed Dec 13 02:53:20 2006

Converting the ctime in a backup image ID to human readable format

# cd /usr/openv/netbackup/db/images/client_01/1025000000
# ls
weds_test_1025079521_FULL weds_test_1025079521_FULL.f

# bpdbm -ctime 1025079521
1025079521 = Wed Jun 26 09:18:41 2002

Was this content helpful?