HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- re : cpio help
Operating System - HP-UX
1834453
Members
2062
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2006 03:37 AM
05-07-2006 03:37 AM
Hi Guys,
Can someone help to modify this backup script for me as this script was done by a previous system administrator who have left my company, because I'm not really good at script, by I need to get cpio to restore the /disk5 to another directory. Please help , thanks in advance
Regards
Vincent
Can someone help to modify this backup script for me as this script was done by a previous system administrator who have left my company, because I'm not really good at script, by I need to get cpio to restore the /disk5 to another directory. Please help , thanks in advance
Regards
Vincent
nothing is better than to know more
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2006 05:37 AM
05-07-2006 05:37 AM
Re: re : cpio help
If you enter option 6: "Restore from tape (all)", it should prompt you for a destination directory. What happens if you give it a directory name?
Trying is the first step to failure - Homer Simpson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2006 06:57 AM
05-07-2006 06:57 AM
Solution
Vincent,
Yes as stated above you can use the script you have attached to restore the backup. But a word of caution -
First check the contents of the backup - If the backup was taken using option 1 in your script then only you can restore to any directory other than /disk5 [ because the option 3 uses absolute path name and hence will restore to exact directory location and nowhere else i.e. only to /disk5/DAASSING ]
To check if relative path name was used or not you can use option 8 of your script - if you can see filenames as /disk5/... then its absolute path name and you cant resote to any other directory than /disk5 , but if there is no /disk5/ then you can restore to any directory.
If relative path name is used you can restore using option 6
Run the script
/pathname/backup.sh
Use Option 6
Enter /restoredir when asked to enter the destination directory.
This will restore the backup of /disk5/DAASSING to the /restoredir.
Another word of caution - ensure you are using the correct tape to which backup of /disk5/DAASSING was taken.
Please let us know if this satisfies your purpose or you need anyother help,
Regards,
Ninad
Yes as stated above you can use the script you have attached to restore the backup. But a word of caution -
First check the contents of the backup - If the backup was taken using option 1 in your script then only you can restore to any directory other than /disk5 [ because the option 3 uses absolute path name and hence will restore to exact directory location and nowhere else i.e. only to /disk5/DAASSING ]
To check if relative path name was used or not you can use option 8 of your script - if you can see filenames as /disk5/... then its absolute path name and you cant resote to any other directory than /disk5 , but if there is no /disk5/ then you can restore to any directory.
If relative path name is used you can restore using option 6
Run the script
/pathname/backup.sh
Use Option 6
Enter /restoredir when asked to enter the destination directory.
This will restore the backup of /disk5/DAASSING to the /restoredir.
Another word of caution - ensure you are using the correct tape to which backup of /disk5/DAASSING was taken.
Please let us know if this satisfies your purpose or you need anyother help,
Regards,
Ninad
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP