- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar command queries
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
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
10-06-2004 02:14 PM
10-06-2004 02:14 PM
I have some queries involving tar command..
1. if I have very big file that cannot be contained in just one tape can I tar them into multiple tape drives?
2. I bee trying but keep failing.. How can I extract a specific file or directory from a archived tape.. is it possible in the first place?
Thank you all for your kind advise!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 02:26 PM
10-06-2004 02:26 PM
Re: Tar command queries
tar xvf /dev/rmt/1mnb /usr/mydir
will extract /usr/mydir and all subdirectories; if a file is specified just that file will be extracted.
I suspect that you are having problems with the filenames. Do a tar vtf /dev/rmt/1mnb first to list the files so that you can see the pathnames.
------------------------------------------
Tar really doesn't span tapes on its own. You can use cpio which does or better still if this is HP-UX to HP-UX use fbackup/frecover. Even the Gnu version of tar and cpio have an 8GB filesize limit so that if you need to backup and restore files larger than this then fbackup is your only "free" option but it is HP-UX specific.
Your other option is to use split to divide the files and back them up in chunks; you can cat them together for the restore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 03:34 PM
10-06-2004 03:34 PM
Re: Tar command queries
Thank you for your kind notes..
but can u advise me on what is the correct way I should used to span a big files into multiple disks using cpio?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:22 PM
10-06-2004 04:22 PM
Re: Tar command queries
#cd dir
#find . | cpio -ocB >/dev/rmt/??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:31 PM
10-06-2004 04:31 PM
Re: Tar command queries
Can I ask you what does each of the command does.. and what do I expect from the command...if I intend to span them to 2 disk?
Many thanks for your help..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2004 04:48 PM
10-06-2004 04:48 PM
Solution#cd dir
you are changing dir which requires backup
#find . | cpio -ocB >/dev/rmt/??
then you print all the files from that directory and pipe the ouput to cpio which writes on to a tape.
cpio prompts automatically to enter the name of the device files once it spans multiple tapes.No options is requried for that