- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Copy/restore file to/from 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
07-08-2002 11:33 PM
07-08-2002 11:33 PM
Is it possible copy and restore files to/from tape using a simple group of commands like cp, mt etc.?
Thank You
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 11:38 PM
07-08-2002 11:38 PM
Re: Copy/restore file to/from tape
Hi,
You can not expect to use a tape drive
as disk device.
A tape drive is sequential while a disk
device is direct access.
For a tape-device you must use commands like
tar, fbackup/frecover, tcio ...
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 11:38 PM
07-08-2002 11:38 PM
Re: Copy/restore file to/from tape
for tape use: tar, cpio, dd
or for backup fbackup command
regards seba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:41 AM
07-09-2002 12:41 AM
Re: Copy/restore file to/from tape
Does anybody have an idea to do this?
I've seen tar does not
support the archival of files larger than 2GB...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 12:55 AM
07-09-2002 12:55 AM
Re: Copy/restore file to/from tape
GNU tar supports files larger then 2GB.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 01:00 AM
07-09-2002 01:00 AM
Re: Copy/restore file to/from tape
http://hpux.asknet.de/hppd/hpux/Gnu/tar-1.13.25/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 02:12 AM
07-09-2002 02:12 AM
Re: Copy/restore file to/from tape
like the others said, the best would be to use fbackup or GNUtar. Even dump is a good way to backup large files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 01:01 AM
07-10-2002 01:01 AM
Re: Copy/restore file to/from tape
If you're files are only 700-800 MB each, you can also put them on tape one-by-one (off course automated in the script) by using "normal" tar. It's maybe easier for retrieval of the files or for getting a list of all the files on tape.
Regards, BB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 01:50 AM
07-10-2002 01:50 AM
Re: Copy/restore file to/from tape
Now I must find how read entire tape to get list of files...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 01:56 AM
07-10-2002 01:56 AM
Re: Copy/restore file to/from tape
To rewind the tape
mt -t /dev/rmt/0m rew
echo $?
0 if succesful
1 if not
To read the contents of the tape and send it to a file
tar -tvf /dev/rmt/0m > /tmp/index.out
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 02:21 AM
07-10-2002 02:21 AM
Re: Copy/restore file to/from tape
Is that ok for you ?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 02:34 AM
07-10-2002 02:34 AM
Re: Copy/restore file to/from tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 02:41 AM
07-10-2002 02:41 AM
Re: Copy/restore file to/from tape
Could I read the tape looking for written files without know how many files there are?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 02:55 AM
07-10-2002 02:55 AM
Re: Copy/restore file to/from tape
Can you post the output of your initial tar command
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 03:03 AM
07-10-2002 03:03 AM
Re: Copy/restore file to/from tape
A free utility is 'fbackup'. 'fbackup' supports files larger than 2GB, and writes an index on the tape which can be read by 'frecover' to rapidly create a tape directory listing. While you cannot append to a tape, you can easily select files for copying to tape using "graphs". Directories and/or files can be included and excluded for copies. Have a look at the man pages for 'fbackup' and 'frecover' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 04:31 AM
07-10-2002 04:31 AM
SolutionTo backup:
# cat filelist | cpio -ocuvB > /dev/tapedevice
To restore:
# cpio -iBdcvm "filename(s)" < /dev/tapedevice
To list whats on tape:
# cpio -ictBv < /dev/tapedevice
A 'man' on cpio explains all the details on switches. 'tapedevice' would be your tape drive, whatever that is.
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 05:17 AM
07-10-2002 05:17 AM
Re: Copy/restore file to/from tape
I just learned about "ftio" yesterday: It is developed specifically for copying files to and from tapes.
Test at our shop have revealed major performance gains over tar, fbackup and cpio.
man ftio
Take care.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 05:25 AM
07-10-2002 05:25 AM
Re: Copy/restore file to/from tape
WHen writing to tape did you append the files
when copying them one by one or did you override the file after you wrote the first file to tape.
if tape = /dev/rmt/0m
then u can use simple commands like
mt rew = rewind tape
mt eof = clean tape
mt offl = spit out tape from device
copying more files at once:
tar -cvf /dev/rmt/0m file1 file2 file3
Reading from tape:
tar -tv (when tape is /dev/rmt/0m )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 05:49 AM
07-10-2002 05:49 AM
Re: Copy/restore file to/from tape
virgo# tar -tvf /dev/rmt/0m > /tmp/index.out
Tar: blocksize = 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 06:01 AM
07-10-2002 06:01 AM
Re: Copy/restore file to/from tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 06:07 AM
07-10-2002 06:07 AM