Results 1 to 5 of 5
  1. #1
    Newcomer
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default restore only latest copy of a file

    dsmc -replace=yes retrieve {/tmp}/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax
    IBM Tivoli Storage Manager
    Command Line Backup/Archive Client Interface
    Client Version 5, Release 3, Level 4.0
    Client date/time: 10/11/12 13:55:32
    (c) Copyright by IBM Corporation and other(s) 1990, 2006. All Rights Reserved.

    Retrieve function invoked.

    Retrieving 1,664,000 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 209,920 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 1,664,000 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 209,920 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 1,664,000 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 209,920 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 1,664,000 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 209,920 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]
    Retrieving 1,664,000 /tmp/archiveDir/01_87~WWBYT0G000SWR1~V1.1.pax [Done]


    I want to get just the latest file, not all of them... and what is it even doing when it grabs all of them? overwriting the same file over and over? what the heck

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Location
    NC
    Posts
    200
    Thanks
    0
    Thanked 12 Times in 11 Posts

    Default

    The command you give is to retrieve an archived file, not to restore a backed up file. They are not the same concept. If the file was backed up (via dsmc incr or dsmc sel) use the dsmc restore command and then only the active version will be restored. If the file is only archived (via dsmc arch) then you need to specify an option like desc= or fromdate= to narrow down which one one want.
    "If we knew what it was we were doing, it would not be called research, would it?" -- Albert Einstein

  3. #3
    Newcomer
    Join Date
    Oct 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ah, thanks. So there's no way to specify 'most recent'?

    Also, I noticed when i call dsmc incr to back up a file, and specify the full path to 1 actual file, it actually goes to the root directory of that file, then lists all files in all subdirectories, and uses the filename i specified as a filter... so for example if I have a these 3 files:

    /tmp/myfile
    /tmp/subdir/myfile
    /tmp/subdir/not_myfile

    And I specify that I want to backup /tmp/myfile (dsmc incr /tmp/myfile) it will back up /tmp/subdir/myfile too... is there an option that allows me to specify that I am giving it the full path and name of 1 single file that I want backed up?

  4. #4
    Senior Member
    Join Date
    Dec 2004
    Location
    NC
    Posts
    200
    Thanks
    0
    Thanked 12 Times in 11 Posts

    Default

    You can specify a particular archive if you know the date or if you supplied a description as part of the "dsmc archive" command. Use the "query archive" client command to see what is available.

    Unless there are links involved the "dsmc incr" command should only back up /tmp/myfile.

    Forgot to mention you can use the -pick option with the dsmc retrieve command and just pick the one you want from the list.
    Last edited by rmazzon; 10-15-2012 at 02:56 PM. Reason: added last paragraph
    "If we knew what it was we were doing, it would not be called research, would it?" -- Albert Einstein

  5. #5
    Senior Member domino's Avatar
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    701
    Thanks
    1
    Thanked 24 Times in 22 Posts

    Default

    The latest option is your friend - to restore the most recent backup version of a file

    for example
    dsmc restore "/tmp/myfile/*" -latest
    If Microsoft is the answer, I want my problem back!

Similar Threads

  1. Restore file from offsite copy when primary is undamaged?
    By chennin in forum Restore / Recovery Discussion
    Replies: 2
    Last Post: 05-31-2010, 12:37 AM
  2. Latest Archived file to Retrieve from TSM Server?
    By d-train in forum Restore / Recovery Discussion
    Replies: 2
    Last Post: 08-07-2007, 11:18 PM
  3. Windows Copy of a HSM file on AIX fails with Cannot Copy File: multiple reasons.
    By rallingham in forum Hierarchical Storage Management
    Replies: 2
    Last Post: 01-03-2007, 11:21 AM
  4. Replies: 5
    Last Post: 04-19-2005, 09:50 AM
  5. cannot copy file in storage pool
    By krelvin in forum Backup / Archive Discussion
    Replies: 0
    Last Post: 03-23-2005, 03:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •