Forum Discussion

Arun_K's avatar
Arun_K
Level 6
12 years ago

nbu 7.5 extend retention


I need to extend the retention of an imaage.

What is the difference in below command?

we have copy 2 on tape and copy 1 on disk.

 

bash-3.2$ sudo ./bpexpdate -backupid  win21_1380426339   -d 12/31/2013 -copy 1
Are you SURE you want to change win21_1380426339 copy 1
to expire on Tue Dec 31 00:00:00 2013 y/n (n)? y


bash-3.2$ sudo ./bpexpdate -backupid  win21_1380426339   -d 12/31/2013
Are you SURE you want to change win21_1380426339 copy 1
to expire on Tue Dec 31 00:00:00 2013 y/n (n)? y

  • if you have 2 copies then..

    with the 2nd command.. it will get all the images( tape and disk) recaulaute 

  • Thanks
    Nagalla.

    I have read the doc.


    bash-3.2$ sudo ./bpexpdate -backupid  win21_1380426339   -d 12/31/2013
    Are you SURE you want to change win21_1380426339 copy 1
    to expire on Tue Dec 31 00:00:00 2013 y/n (n)? y
     


    This will extend the retention of   this image from disk as well as tape.Correct?

  • Nothing. You are explicitly stating copy 1 in the first command. The 2nd just does copy 1 by default as that is the only copy.

    If you had 2 copies, the second command would change BOTH copies to 12/31/2013, the first wouldn't

     

    Example of 2 images copies below:

     

    # bpimagelist -d 01/01/1970
    IMAGE master_1 0 0 10 master_1_1381393430 test 0 *NULL* root FULL 0 1 1381393430 19 2147483646 0 0 32 1 2 2 0 test_1381393430_FULL.f *NULL* *NULL* 0                     1 0 0 0 *NULL* 0 0 0 0 0 0 0 *NULL* 0 0 0 *NULL* 5 1 0 735 0 0 *NULL* *NULL* 0 0 0 0 *NULL* *NULL* 0 12 0 0
    HISTO 0 0 0 0 0 0 0 0 0 0
    FRAG 1 1 32 0 0 0 0 @aaaab master_1 262144 0 0 -1 0 1;AdvancedDisk;master_1;disk_storage1;/disk_storage1;0 2147483646 0 65537 0 0 0 6 0 1381393449 1 1 *NULL* *                    NULL* 0 0
    FRAG 2 1 32 0 0 0 0 @aaaad master_1 262144 0 0 -1 0 1;AdvancedDisk;master_1;disk_storage2;/disk_storage2;0 2147483646 0 65537 0 1 0 6 0 1382956777 1 1 *NULL* *                    NULL* 0 0

    # bpexpdate -backupid master_1_1381393430 -d 01/01/2014
    Are you SURE you want to change master_1_1381393430
    to expire on Wed Jan 01 00:00:00 2014 y/n (n)? y

    # bpimagelist -d 01/01/1970
    IMAGE master_1 0 0 10 master_1_1381393430 test 0 *NULL* root FULL 0 1 1381393430 19 1388534400 0 0 32 1 2 2 0 test_1381393430_FULL.f *NULL* *NULL* 0                     1 0 0 0 *NULL* 0 0 0 0 0 0 0 *NULL* 0 0 0 *NULL* 5 1 0 735 0 0 *NULL* *NULL* 0 0 0 0 *NULL* *NULL* 0 12 0 0
    HISTO 0 0 0 0 0 0 0 0 0 0
    FRAG 1 1 32 0 0 0 0 @aaaab master_1 262144 0 0 -1 0 1;AdvancedDisk;master_1;disk_storage1;/disk_storage1;0 1388534400 0 65537 0 0 0 6 0 1381393449 1 1 *NULL* *                    NULL* 0 0
    FRAG 2 1 32 0 0 0 0 @aaaad master_1 262144 0 0 -1 0 1;AdvancedDisk;master_1;disk_storage2;/disk_storage2;0 1388534400 0 65537 0 1 0 6 0 1382956777 1 1 *NULL* *                    NULL* 0 0
     

  • if you have 2 copies then..

    with the 2nd command.. it will get all the images( tape and disk) recaulaute