• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above 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 notice will disappear after you have made at least 3 posts.

Restore both active AND inactive files

opeth

ADSM.ORG Member
#1
All, I have a situation where I need to restore all active and inactive files for a number of folders that are in permenant retention. I am unsure if there is a good/easy way to do this. Anyone ever had to do this? Any ideas?
 

marclant

ADSM.ORG Moderator
#2
You can't do it. If you specify -inactive, it will restore the active file if it exist, for deleted files, it will restore the most recent inactive.

Here, I have 3 version of this file:
Code:
  Size  Backup Date  Mgmt Class  A/I File
  ----  -----------  ----------  --- ----
  8,761  B  07/26/2017 10:28:21  DEFAULT  A  \\lanteigne\c$\test\test1.txt
  8,761  B  07/26/2017 10:26:19  DEFAULT  I  \\lanteigne\c$\test\test1.txt
  8,761  B  07/26/2017 10:26:30  DEFAULT  I  \\lanteigne\c$\test\test1.txt
If I restore using: dsmc restore c:\test\test1.txt -inactive It restores 1 file:

Code:
Restoring  8,761 \\lanteigne\c$\test\test1.txt [Done]
Restore processing finished.
Total number of objects restored:  1
Total number of objects failed:  0
Total number of bytes transferred:  8.77 KB
Data transfer time:  0.02 sec
Network data transfer rate:  407.53 KB/sec
Aggregate data transfer rate:  3.78 KB/sec
Elapsed processing time:  00:00:00

It doesn't restore all the files because if it did, it would just keep overwriting them until it restores the last one. For that reason, it restores the most recent version.
 

Harry_Redl

Moderator
ADSM.ORG Moderator
#3
Hi,
try the "-latest" option

Latest
Use the latest option to restore the most recent backup version of a file, even if
the backup is inactive.
Examples
Command line:
dsmc restore c:\devel\projecta\ -latest
Harry

EDIT: sorry, misread the question - if you need to restore ALL the active/inactive versions of ONE file then this does not help - problem is you would need to rename the versions to prevent file being overwritten (as marclant pointed out) - which TSM cannot do by itself
 

opeth

ADSM.ORG Member
#5
Yea I know out of the box this wont work, just wondering if there is a workaround to possibly rename the file with the date it was marked inactive or something.
Guess not.

Related question, is there a way to restore all inactive files (not versions) that don't currently have a active version? (deleted files that don't have an active version with same name) with dsmc restore?
 

opeth

ADSM.ORG Member
#7
Right I understand, might be able to do some powershell magic and script it, but see my second question above... im doubting that is possible either but just wanted to ask the community here before I jump into a ton of work
 

opeth

ADSM.ORG Member
#8
dsmc restore c:\test\* -inactive <-------this for example, wont JUST grab the latest inactive files that don't have a active version, right?
 

marclant

ADSM.ORG Moderator
#9
dsmc restore c:\test\* -inactive <-------this for example, wont JUST grab the latest inactive files that don't have a active version, right?
It will grab the active for files that have an active version and the latest inactive for files that do not have an active. If you look at my example, I had an active and it restored it.
 

opeth

ADSM.ORG Member
#10
It will grab the active for files that have an active version and the latest inactive for files that do not have an active. <---THAT is what I was looking for. That will work and saves me some headache
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 9 22.5%
  • Keep using TSM for Spectrum Protect.

    Votes: 19 47.5%
  • Let's be formal and just say Spectrum Protect

    Votes: 8 20.0%
  • Other (please comement)

    Votes: 4 10.0%

Forum statistics

Threads
31,001
Messages
131,978
Members
21,255
Latest member
pzzl321
Top