1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

dsmc retrieve -pick 1

Discussion in 'Restore / Recovery Discussion' started by benlynch, Oct 22, 2012.

  1. benlynch

    benlynch Active Newcomer

    Joined:
    Oct 10, 2012
    Messages:
    12
    Likes Received:
    0
    Is there any way to use -pick without making it interactive? IE: if i just want the most recent file, that file is always #1 in the pick list, so can i just specify "restore pick 1" ?


    Obviously that exact syntax i have already tried and it does not work, and the documentation for pick does not mention any way to do it, but I hoped someone else would know?
     
  2.  
  3. LED888

    LED888 ADSM.ORG Moderator

    Joined:
    Oct 15, 2002
    Messages:
    780
    Likes Received:
    56
    Since we are performing a restore, by default we will get the active version.
    The active version is the most recent backup of the file.
    If you want an older version of the file (inactive), then use the -pick -ina options.

    Good Luck,
    Sias
     
  4. benlynch

    benlynch Active Newcomer

    Joined:
    Oct 10, 2012
    Messages:
    12
    Likes Received:
    0
    Thanks, but that refers to backups... I have a bunch of archived files, and when I ask for one, it retrieves all 32 copies, overwriting the result file repeatedly until just the latest file is left... so I end up with what i wanted, but it takes longer than it needs to.

    dsmc -replace=yes retrieve {/tmp}/archiveDir/GM_DE~11513SDE001.000~V1.1.pax
    Retrieving 1,696,501,760 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,209,920 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,516,846,080 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,209,920 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,516,846,080 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,209,920 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,516,840,960 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,209,920 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,516,840,960 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,588,800 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,520,419,840 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,588,800 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,520,414,720 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,588,800 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,520,414,720 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,588,800 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,520,414,720 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 208,588,800 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]
    Retrieving 1,728,998,400 /tmp/archiveDir/GM_DE~11513SDE001.000~V1.1.pax [Done]

    Retrieve processing finished.

    Total number of objects retrieved: 19
    Total number of objects failed: 0
    Total number of bytes transferred: 3.14 GB
    Data transfer time: 3,084.73 sec
    Network data transfer rate: 1,069.92 KB/sec
    Aggregate data transfer rate: 707.23 KB/sec
    Elapsed processing time: 01:17:46
     
  5. chad_small

    chad_small ADSM.ORG Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,210
    Likes Received:
    46
    Occupation:
    AIX/SAN/TSM
    Location:
    Gilbert, AZ
    Use the -pitd and -pitt option to restore the archived file from a specific day/date.
     

Share This Page