Highlighted
Absent Member.
Absent Member.
385 views

omnir for file restore in HP-UX

Jump to solution
Dear Helper,
I am trying to take file backup by CLI in HP-UX environment. For that I used thess command:
omnir -filesystem wdkescn1:/med/cdr -session 2007/07/05-20 -tree /med/cdr/new/ as /var/fres/ -target wdktsdb1 -only MSC01IC07050904220166*Z
where,
wdkescn1= hostname from which I took backup
/med/cdr= mount point from which I took file at backup time
/med/cdr/new/ = my file currently located.
/var/fres/ = my restore location
wdktsdb1 = where I will put file from tape
MSC01IC07050904220166*Z= my file pattern

I also changed "as" by "into" in the above command but for both cases I got the following message: "Object not found"


But I applied following command:
# omnidb -filesearch wdkescn1 /med/cdr/new/ MSC01IC07050904220166*Z
I got these output which indicate that I have some files. and I am confirmed that my session contains these files.
ObjType ObjName Description PathName
===============================================================================
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201660Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201661Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201662Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201663Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201664Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201665Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201666Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201667Z
FileSyste wdkescn1:/med/cdr "/med/cdr" /med/cdr/new/MSC01IC070509042201668Z


Would anyone help me to restore file???


0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.
Hi,

the object specification in the command must contain both the object and the "label" and must be specifyed exact as it appears in the backup.


Perhaps easiest is to do a
"omnidb -session "
and "cut and paste".

View solution in original post

3 Replies
Highlighted
Absent Member.
Absent Member.
Hi,

the object specification in the command must contain both the object and the "label" and must be specifyed exact as it appears in the backup.


Perhaps easiest is to do a
"omnidb -session "
and "cut and paste".

View solution in original post

Highlighted
Absent Member.
Absent Member.
Try with this command

# omnidb -filesearch "wdkescn1" "/med/cdr" MSC01IC07050904220166*Z
0 Likes
Highlighted
Absent Member.
Absent Member.
Hi,
To restore file you can use this command:

omnir -filesystem wdkescn1:/med/cdr '/med/cdr' -session 2007/07/05-20 -tree /med/cdr/old -into /var/fres/ -target wdktsdb1 -only MSC01IC07050904220166*Z

Here,
wdkescn1:/med/cdr '/med/cdr' = object name collected by command 2
/med/cdr/old = source file tree
wdktsdb1 = Server name where file should be restored
/var/fres = Where file should be restored
MSC01IC07050904220166*Z = File pattern

skip can be used instead of only.

This command is tested.So hopefully this one will help you.

Thanks & Regards

A. Aashique
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.