instances is a directory. To restore the contents of that directory (files in that dir, child subdirectories and their files), you need to append the '/' to the end of the directory name:
restore /var/opt/SUNWdsee/instances/ -subdir=yes -pitdate=... -pittime=... (I'll let you fill in the pitdate and pittime parms) If you don't want subdirectories of ../instances, then use -subdir=no (which is the default, unless you have SUBDIR YES in your options file or client option set). Best regards, Andy Andy Raibeck IBM Software Group Tivoli Storage Manager Client Product Development Level 3 Team Lead Internal Notes e-mail: Andrew Raibeck/Tucson/[EMAIL PROTECTED] Internet e-mail: [EMAIL PROTECTED] IBM Tivoli Storage Manager support web page: http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html The only dumb question is the one that goes unasked. The command line is your friend. "Good enough" is the enemy of excellence. From: Timothy Hughes <[EMAIL PROTECTED]> To: [email protected] Date: 10/09/2008 02:13 PM Subject: Re: command line restore for solaris client Micheal, Remco Thanks for your reponses! Remco, Unfortunatley I can't use the Gui to do these restore's because there on another network and we have to connect to them through a windows box with putty on it. Otherwise the GUI is my first option. I did the following query commands and the earliest date is 08/17/08. Looks like that is the earliest date I can find. tsm> query backup /var/opt/SUNWdsee/instances* Size Backup Date Mgmt Class A/I File ---- ----------- ---------- --- ---- 512 B 08/17/07 00:19:00 PROD730 A /var/opt/SUNWdsee/instances query backup /var/opt/SUNWdsee/instances/ Size Backup Date Mgmt Class A/I File ---- ----------- ---------- --- ---- 512 B 08/17/07 00:19:03 PROD730 A /var/opt/SUNWdsee/instances/application_service 512 B 08/17/07 00:19:03 PROD730 A /var/opt/SUNWdsee/instances/identity_and_access_ma nager_instance01 512 B 08/17/07 00:19:03 PROD730 A /var/opt/SUNWdsee/instances/identity_and_access_ma nager_instance02 1,024 B 10/08/08 00:13:14 PROD730 A /var/opt/SUNWdsee/instances/test 9,883,961 B 08/17/07 00:19:04 DEFAULT A /var/opt/SUNWdsee/instances/accessmanager.ldif 381,440 B 08/17/07 00:19:04 DEFAULT A /var/opt/SUNWdsee/instances/accessmanagerschema.ta r 431,596,032 B 10/09/08 00:11:21 DEFAULT A /var/opt/SUNWdsee/instances/ldapinstancesbackp-10- 08-2008.tar tsm> query backup /var/opt/SUNWdsee/instances -ina -subdir=y Size Backup Date Mgmt Class A/I File ---- ----------- ---------- --- ---- 512 B 08/17/07 00:19:00 PROD730 A /var/opt/SUNWdsee/instances tsm> query backup /var/opt/SUNWdsee/instances/ -ina Size Backup Date Mgmt Class A/I File ---- ----------- ---------- --- ---- 512 B 08/17/07 00:19:03 PROD730 A /var/opt/SUNWdsee/instances/application_service 512 B 08/17/07 00:19:03 PROD730 A /var/opt/SUNWdsee/instances/identity_and_access_ma nager_instance01 512 B 08/17/07 00:19:03 PROD730 A /var/opt/SUNWdsee/instances/identity_and_access_ma nager_instance02 1,024 B 10/08/08 00:13:14 PROD730 A /var/opt/SUNWdsee/instances/test 9,883,961 B 08/17/07 00:19:04 DEFAULT A /var/opt/SUNWdsee/instances/accessmanager.ldif 381,440 B 08/17/07 00:19:04 DEFAULT A /var/opt/SUNWdsee/instances/accessmanagerschema.ta r 431,596,032 B 10/09/08 00:11:21 DEFAULT A /var/opt/SUNWdsee/instances/ldapinstancesbackp-10- 08-2008.tar I did the following why does the file size say 512 but it say's 0 bytes transferred? tsm> restore -pitdate=08/17/2007 /var/opt/SUNWdsee/instances* Restore function invoked. Restoring 512 /var/opt/SUNWdsee/instances [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 Elapsed processing time: 00:00:03 Remco Post wrote: > I guess this is a directory? > > dsmc q back /var/opt/SUNWdsee/ -ina -subdir=y could help you verify > > dsmc rest -pitdate=5/30/2007 /var/opt.SUNWdsee/instances/ -repl=all - > subdir=y > > or something > or, if all else fails, get a gui and point&click (dsm). > > On 9 okt 2008, at 16:57, Timothy Hughes wrote: > >> Hello All, >> >> I am trying to do a restore and so far I am having no luck with this >> command after several tries. >> >> Can anyone help? >> >> Thanks >> >> tsm> restore -pitdate=5/30/2007 -pittime=07:00:00 >> /var/opt/SUNWdsee/instances - >> eplace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> restore -pitdate=5/30/2007 -pittime=07:00:00 >> /var/opt/SUNWdsee/instances - replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/intstances - >> replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> res -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> rest -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/instances - >> replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> # dsmc >> IBM Tivoli Storage Manager >> Command Line Backup/Archive Client Interface >> Client Version 5, Release 5, Level 0.1 >> Client date/time: 10/09/08 10:44:37 >> (c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights >> Reserved. >> >> >> tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/instances - >> replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/instances - >> replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> restore -pitdate=5/30/2007 "/var/opt/SUNWdsee/instances - >> replace=all >> Restore function invoked. >> >> ANS1079E No file specification entered >> tsm> res -pitdate=5/30/2007 "/var/opt/SUNWdsee/instances" - >> replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> restore -pitdate=5/30/2007 "/var/opt/SUNWdsee/instances" - >> replace=all >> Restore function invoked. >> >> ANS1302E No objects on server match query >> >> tsm> > > > -- > > Remco Post > [EMAIL PROTECTED] > +31 6 24821 622
