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.

Querying the backup and restoring it

Discussion in 'Restore / Recovery Discussion' started by unixandtsm, Aug 14, 2012.

  1. unixandtsm

    unixandtsm New Member

    Joined:
    Feb 9, 2011
    Messages:
    307
    Likes Received:
    0
    Hi all,

    querying the backups of a client node from client command line and restoring the data has always been a trouble for me.

    Trying to query files with "inactive" option but couldn't see the inactive versions only active versions.
    and when i restore active version, there is no data in the restore ?

    Code:
    # dsmc q backup -inactive -subdir=yes /Test/Test1/Test2
    
     Size        Backup Date                Mgmt Class           A/I File
               ----        -----------                ----------           --- ----
     2,048  B  07/09/2012 05:42:06   STANDARD             A  /Test/Test1/Test2
    
    

    How to query inactive backups and see the details of the backups without restore ?
    Thanks in advance!
     
  2.  
  3. Trident

    Trident Senior Member

    Joined:
    Apr 2, 2007
    Messages:
    286
    Likes Received:
    26
    Occupation:
    IT operations
    Location:
    Oslo, Norway
    Hi

    Can you try this?

    # dsmc q backup -inactive -subdir=yes /Test/Test1/Test2/*
     
  4. unixandtsm

    unixandtsm New Member

    Joined:
    Feb 9, 2011
    Messages:
    307
    Likes Received:
    0
    Hi Trident,

    Tried below but no luck
    Code:
    #dsmc q backup -inactive -subdir=yes "/Test/Test1/Test2/*"
    
    ANS1092W No files matching search criteria were found
    
    and then tried with single quotes but same result
    Code:
    #dsmc q backup -inactive -subdir=yes '/Test/Test1/Test2/*'
    
    ANS1092W No files matching search criteria were found
    
    
    why TSM is not showing any inactive files ?
     
  5. Trident

    Trident Senior Member

    Joined:
    Apr 2, 2007
    Messages:
    286
    Likes Received:
    26
    Occupation:
    IT operations
    Location:
    Oslo, Norway
    Hi,

    If there are multiple filespaces covering same directory over time, you will have to include the filepsace name in your query.

    Sample:

    q file gives

    /usr
    /opt
    /Test
    /Test/Test1


    Then try one of these

    dsmc q backup {/Test}/Test1/Test2/* -ina -subdir=yes
    dsmc q backup {/Test/Test1}/Test2/* -ina -subdir=yes
     

Share This Page