backup log says successful but nothing restored when try to restore

unixandtsm

ADSM.ORG Member
Joined
Feb 9, 2011
Messages
307
Reaction score
0
Points
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 ?
 
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
 
Hi Jeroen and David,

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