- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I use cpio to download one file to another...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
12-07-2000 06:05 AM
12-07-2000 06:05 AM
How can I use cpio to download one file to another directory different from original
As you received my points, you can see that I solve part of my problem, so the new question is:
How can I use cpio the way that you told me and download the file(s) to another directory or present directory, different from original
Thanks again
Marcelo Polizzotto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 06:26 AM
12-07-2000 06:26 AM
Re: How can I use cpio to download one file to another directory different from original
OR , you can umount /backup , create a directory /backup and link this to the directory you want the files to be go to.
The simplest would be if possible to do a relative backup i.e. find . instead of / )
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 06:27 AM
12-07-2000 06:27 AM
Re: How can I use cpio to download one file to another directory different from original
find . -depth -print|cpio -dumpv /newdirectory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 07:16 AM
12-07-2000 07:16 AM
Re: How can I use cpio to download one file to another directory different from original
find .|cpio -pudvm /
Will copy the files and sub dirs to your target directory.
See man cpio for the switches.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 07:53 AM
12-07-2000 07:53 AM
Re: How can I use cpio to download one file to another directory different from original
find . -depth | cpio -pmuldv /
The switches will keep the same perms and owners, create new subdirectories if needed, will prompt for overwirite, etc...
This will make a copy of the file. You will still have a copy in the original location as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 07:57 AM
12-07-2000 07:57 AM
Re: How can I use cpio to download one file to another directory different from original
man pax for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 08:02 AM
12-07-2000 08:02 AM
Re: How can I use cpio to download one file to another directory different from original
It's funny to see that we all use the same flags for cpio, but in a different sequence. Maybe the mnemonic tricks are different due to the language difference (I'm originally french speaking)
I'm using:
cd
find . -depth | cpio -pdvum
Another solution would be to use 'tar'
cd
tar cf - . | (cd
This was only to be a bit different ;-)
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 10:35 PM
12-07-2000 10:35 PM
Re: How can I use cpio to download one file to another directory different from original
I've just discoverd your other post and realised that you used a full pathname to archive data on your tape.
In that case, there is no way to restore your data in other location.
Dan
PS: you should have continued with your other post as it's difficult for people to know the full context when you start a new one. That leads to wrong answers and a waste of time for everybody, including you.