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.

backup log says successful but nothing restored when try to restore

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

  1. unixandtsm

    unixandtsm New Member

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

    I just setup a TSM BA client node and run first backup. Backup log says it is successful and when i query backup, i can see backup files there but when i try to resote, restore finished but there is nothing in the restored directory.

    Below is backup log when i run the backup
    Code:
    Incremental backup of volume '/data/backups'
    ANS1898I ***** Processed       500 files *****
    ANS1898I ***** Processed     1,000 files *****
    ANS1898I ***** Processed     1,500 files *****
    ANS1898I ***** Processed     2,000 files *****
    Directory-->               4,096 /data/backups [Sent]
    Successful incremental backup of '/data/backups'
    
    
    Total number of objects inspected:    2,246
    Total number of objects backed up:        1
    Total number of objects updated:          0
    Total number of objects rebound:          0
    Total number of objects deleted:          0
    Total number of objects expired:          0
    Total number of objects failed:           0
    Total number of bytes inspected:      4.56 MB
    Total number of bytes transferred:       0  B
    Data transfer time:                    0.00 sec
    Network data transfer rate:            0.00 KB/sec
    Aggregate data transfer rate:          0.00 KB/sec
    Objects compressed by:                    0%
    Total data reduction ratio:          100.00%
    Elapsed processing time:           00:01:07
    
    
    below is the output of query backup command

    Code:
    # dsmc q backup -subdir=yes /data/backups
    
               Size        Backup Date                Mgmt Class           A/I File
               ----        -----------                ----------           --- ----
             4,096  B  08/27/2012 16:35:32              NORMAL              A  /data/backups
    
    
    below is the output when i ran the restore

    Code:
    # dsmc restore -subdir=yes /data/backups /tmp/tempRestore/
    
    
    Restore function invoked.
    
    Restoring           4,096 /data/backups --> /tmp/tempRestore/backups [Done]
    
    Restore processing finished.
    
    Total number of objects restored:         1
    Total number of objects failed:           0
    Total number of bytes transferred:       0  B
    Data transfer time:                    0.00 sec
    Network data transfer rate:            0.00 KB/sec
    Aggregate data transfer rate:          0.00 KB/sec
    
    
    and below is the location where i resotred files to

    Code:
    # pwd
    /tmp/tempRestore/backups
    # ls -ltrh
    total 0
    
    Not sure what is wrong here ?
     
  2.  
  3. Jeroen

    Jeroen Senior Member

    Joined:
    Oct 2, 2002
    Messages:
    355
    Likes Received:
    12
    Occupation:
    AIX + storage administrator
    Location:
    netherlands
    dsmc q backup /data/backups/
    notice the / on the end
     
    unixandtsm likes this.
  4. mccleld

    mccleld Member

    Joined:
    Jun 24, 2003
    Messages:
    261
    Likes Received:
    7
    Occupation:
    Data Protection Specialist
    Location:
    London, UK
    Hi @UnixandTSM,

    To expand on what @Jeroen is saying here, your original backup *was* successful but only performed a backup of 1 object - from your output, "Total number objects backed up: 1" which is the directory you told it to backup (/data/backups). So, the TSM BA client is performing what you've asked it to do.

    Now, assuming your intention was to backup the content of the /data/backups directory you may wish to issue a command along the lines of dsmc inc /data/backups/ - note the trailing '/'. Now observe in the output of your backup command that all of the objects will be backed up, not just the directory.

    HTH,
    ___________
    David Mc
    London, UK
     
    unixandtsm likes this.
  5. unixandtsm

    unixandtsm New Member

    Joined:
    Feb 9, 2011
    Messages:
    307
    Likes Received:
    0
    Hi Jeroen and David,

    Thank you both !.
    As suggested used a trailing '/' and it seems everything is fine now.
     

Share This Page