1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link 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 message will disappear after you have made at least 12 posts. Thank you for your cooperation.

dsmc retrieve -pick 1

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

  1. benlynch

    benlynch New Member

    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 Moderator

    Joined:
    Oct 15, 2002
    Messages:
    702
    Likes Received:
    49
    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 New Member

    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 Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,207
    Likes Received:
    44
    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