- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- which option can tar a directory to tape
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
05-17-2004 11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:44 PM
05-17-2004 11:44 PM
Re: which option can tar a directory to tape
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:47 PM
05-17-2004 11:47 PM
Re: which option can tar a directory to tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:54 PM
05-17-2004 11:54 PM
Re: which option can tar a directory to tape
And, I want to tar more than one directory to tape ,such as directory1 , directory2 , directory3 , which option should be used ?
and , what command to restore them from tape ?
thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:59 PM
05-17-2004 11:59 PM
Re: which option can tar a directory to tape
to restore replace the c with x (extract)
tar -xvf
man tar will tell you a lot more than we can...
multiple directories:
tar -cvf
regards,
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 12:07 AM
05-18-2004 12:07 AM
Re: which option can tar a directory to tape
That's why I gave you the example with the -C option:
tar -cv -C /directory_name . -C /other_directory .
- or, if you're not using the default tape device /dev/rmt/0m -
tar -cvf /dev/rmt/?m -C /directory_name . -C /other_directory .
This method does a cd to the specified directory before tar'ing it's contents and you can just keep on adding -C options until you've covered all the directories you want to.
Restoring, as mentioned, is done with the -x option.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 12:17 AM
05-18-2004 12:17 AM
Re: which option can tar a directory to tape
to tar many directories:
# tar -cvf
but watch for the size of your tape
to untar use -xvf option
and to view, use -tvf option following by the
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 01:43 AM
05-18-2004 01:43 AM
Re: which option can tar a directory to tape
one more tip:
tar restores date with the path you write it!
So often it's better to create tar files with a relative path ./dir if you want to exchange files for example.
So you can write it in any directory where the relative path is restored.
HTH
Volkmar