Results 1 to 5 of 5
-
10-11-2012, 02:06 PM #1Newcomer
- Join Date
- Oct 2012
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
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
-
10-15-2012, 12:46 PM #2Senior Member
- Join Date
- Dec 2004
- Location
- NC
- Posts
- 200
- Thanks
- 0
- Thanked 11 Times in 11 Posts
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
-
10-15-2012, 01:06 PM #3Newcomer
- Join Date
- Oct 2012
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
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?
-
10-15-2012, 02:48 PM #4Senior Member
- Join Date
- Dec 2004
- Location
- NC
- Posts
- 200
- Thanks
- 0
- Thanked 11 Times in 11 Posts
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
-
10-16-2012, 05:48 AM #5
The latest option is your friend - to restore the most recent backup version of a file
for example
dsmc restore "/tmp/myfile/*" -latestIf Microsoft is the answer, I want my problem back!
Similar Threads
-
Restore file from offsite copy when primary is undamaged?
By chennin in forum Restore / Recovery DiscussionReplies: 2Last Post: 05-31-2010, 12:37 AM -
Latest Archived file to Retrieve from TSM Server?
By d-train in forum Restore / Recovery DiscussionReplies: 2Last Post: 08-07-2007, 11:18 PM -
Windows Copy of a HSM file on AIX fails with Cannot Copy File: multiple reasons.
By rallingham in forum Hierarchical Storage ManagementReplies: 2Last Post: 01-03-2007, 11:21 AM -
retrieve files from archive, then update to latest date with restore ?? Possible??
By itdrew in forum Restore / Recovery DiscussionReplies: 5Last Post: 04-19-2005, 09:50 AM -
cannot copy file in storage pool
By krelvin in forum Backup / Archive DiscussionReplies: 0Last Post: 03-23-2005, 03:06 PM


Reply With Quote