Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Roberto Fabrett Regular Contributor.
Regular Contributor.
5138 views

omnir command line restore several files

We are using DataProtector 5.5 and the only way to specify which files should be restored is to use -only
How is it possible to specify several files to be restored
Tags (1)
0 Likes
6 Replies
Dan Zucker Absent Member.
Absent Member.

Re: omnir command line restore several files

I never found a good way to restore numerous individual files.

I have usually restored directories or file systems to a free disk area and then pick and choose what to move or by running multiple reads of the media which is wastful
but each read restores a file.
0 Likes
Roberto Fabrett Regular Contributor.
Regular Contributor.

Re: omnir command line restore several files

Thank you for your answer but this wold mean I would have to restore several hundreds of gigabytes in order to pick up 2300 files or so. I really need to specify the individual files to be restored. It is possible to do it from the gui so why not from command line. The user manual is so terse...
0 Likes
rariasn Absent Member.
Absent Member.

Re: omnir command line restore several files

Hi Roberto,

The manual "client command reference" give a good and complete description (full syntax + examples)of all the Command Line Interface commands in DP.

http://support.openview.hp.com/selfsolve/manuals

Options for version 6.0

# man omnir


DataOptions

-exclude TreeName
Excludes the specified tree from the restore. This option is not supported with the Data Protector NDMP server integration.


-skip MatchPattern
Excludes files matching MatchPattern from restore. This option is not supported with Data Protector NDMP server integration.

-only MatchPattern
Restores only files that match the given MatchPattern. This option is not supported with Data Protector NDMP server integration.

etc.


Rgs,
0 Likes
Roberto Fabrett Regular Contributor.
Regular Contributor.

Re: omnir command line restore several files

Hello

I have read the manual but there was no example of selecting several MatchingPatterns

for example syntax does not work

omnir -filesystem zzzzz:/sfs1 '/sfs1/test' -tree '/sfs1/test' \
-only %gconf.xml \
-only .openoffice-lock \
-only .parentlock \
-only .qt_plugins_3.3rc.lock \
-only bookmarks-2009-05-01.json \
-only bookmarks.xml.tbcache \
-only contactlist.xml \
-only global.dat \
-only lock \
-session 2009/12/12-3 -target zzzzz -into /tmp
0 Likes
Scott McIntosh_ Absent Member.
Absent Member.

Re: omnir command line restore several files

You would just use multiple -only within the object version reference.

But, 2700 files? You'll be rerunning omnir a lot, since you're limited to the OS command line parser limit. And each run means a new laod/seek/unload.

Maybe restore by query in the GUI would be better, if there's any pattern to group them. Or manual add restore, since at least GUI -> RSM does not have the OS CLI parser limit which impacts omnir.

Thanks,
Scott
0 Likes
Highlighted
Absent Member.. Wilder Mellotto Absent Member..
Absent Member..

Re: omnir command line restore several files

Hi, here is one example:

 

# omnir -filesystem server:/ / -session 2011/11/30-2 -tree /file1 /file2 /file3 /file4

 

This command will restore 4 files.

 

Is that what you need?

 

 

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.