- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar a folder 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
10-17-2002 06:16 AM
10-17-2002 06:16 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:17 AM
10-17-2002 06:17 AM
Re: Tar a folder to tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:19 AM
10-17-2002 06:19 AM
SolutionNormally you do not have to mount the tape drive. Do an ioscan -fnC tape to find out the tape device (usually /dev/rmt/0m)
You can then use the following tar command to
tar the folder to tape.
tar -cvf /dev/rmt/0m foldername
the -c option says to create the tar file
the -v says to be verbose
the -f /dev/rmt/0m says where to create it, here it is to tape.
Hope this helps.
Have a GREAT HP day!
Larry :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:20 AM
10-17-2002 06:20 AM
Re: Tar a folder to tape
To determine tape device, do the following:
ioscan -fnC tape
Then do the command as above...although the default output for the tar command IS the tape drive - so you could just do
tar cvf /path/to/dir
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:27 AM
10-17-2002 06:27 AM
Re: Tar a folder to tape
Try: "ioscan -fnC tape"
In any case you'll most likely need to run the following command.
tar -cvf /dev/rmt/0m /folder/to/tar
0m is the tape device file that you use to write to the tape.
the "cvf" options state create a new tar, show verbose output, and send the data to the file I'm listing next. In this case the file is "/dev/rmt/0m". The you put the directory, or folder, you want to tar.
HTH,
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:33 AM
10-17-2002 06:33 AM
Re: Tar a folder to tape
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2002 06:46 AM
10-17-2002 06:46 AM
Re: Tar a folder to tape
mt -t /dev/rmt/0m rewind
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2002 12:17 AM
10-18-2002 12:17 AM
Re: Tar a folder to tape
In HP-UX, if device name does not contain 'n'(such as /dev/rmt/0m), tape rewinds after each command working with the device file. If device device contains 'n' (like /dev/rmt/0mn), the tape does not rewind and remains on the position writing has been finished. No-rewind device is a good option if you want to add files with more commands.
If you insert the tape in your drive, it positions on the beginning and no rewind is needed. I rewind the tape if I'm unsure about the previoius operations with the tape and want overwrite everything.
BR,
Mihails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2002 01:11 AM
10-18-2002 01:11 AM
Re: Tar a folder to tape
You can even tar a folder to a "tar depot" on your filesystem.
++++++++++++++++
tar -cvf tar_depot dir_to_save
tar -cvf /dev/rmt/0m file1 file2 file3 -> to save different files
tar -cv -C /etc -C /var/adm ->this will archive files from /etc and /var/adm to tape
++++++++++++++++