- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar Backup in commpresed mode
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-02-2011 07:39 AM
тАО06-02-2011 07:39 AM
I need to take a copy of one full file system have around 80 GB in DAT tape in HP UNIX Box.
But I have the DAT-4 tape having the capacity 20/40 GB only ( 40 GB in compressed state)
Is ther any compressed way to take backup in this DAT-4 tape, using tar.
Anybody know kindly guid me to take the backup.
Tape Drive Info
============
Ioscan тАУfnC tape
tape 1 0/6/1/0.2.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/1m /dev/rmt/1mnb /dev/rmt/c8t2d0BESTn /dev/rmt/c8t2d0DDSb
/dev/rmt/1mb /dev/rmt/c8t2d0BEST /dev/rmt/c8t2d0BESTnb /dev/rmt/c8t2d0DDSn
/dev/rmt/1mn /dev/rmt/c8t2d0BESTb /dev/rmt/c8t2d0DDS /dev/rmt/c8t2d0DDSnb
Thanks in Advance
Solved! Go to Solution.
- Tags:
- tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 07:54 AM
тАО06-02-2011 07:54 AM
Re: tar Backup in commpresed mode
> backup.
Uh, use more than one tape?
> [...] ( 40 GB in compressed state) [...]
That's an estimate. Some data are more
compressible than others. With my weak
psychic powers, I don't know how compressible
your data are. (Until you try compressing
them, you probably don't, either.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 09:44 AM
тАО06-02-2011 09:44 AM
Re: tar Backup in commpresed mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 10:21 AM
тАО06-02-2011 10:21 AM
Re: tar Backup in commpresed mode
And yes, probably you night need more than one single tape bocause of the file system size.
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2011 06:30 PM
тАО06-02-2011 06:30 PM
Re: tar Backup in commpresed mode
You have been reading the marketing data...this tape will store no more than 20 GB. Unless you have a lot of compressible files, you'll need 4 or 4 tapes. Compression is not magic. Whether you use hardware compression (a better choice) in the tape drive, or HP-UX compression, there will be little difference. A compressible file has many, many repeating patterns such as spaces in a fixed length ASCII document (very unusual in HP-UX).
The average compressibility for HP-UX systems (vg00 for example) is 1.2 to 1.4. The only way to determine the compressibility of the 80 GB of data is to completely backup the files and then count the tapes. It's not possible to backup 80 GB of random data on one 20 GB tape.
fbackup will not make any difference over tar except for speed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 06:01 AM
тАО06-06-2011 06:01 AM
Re: tar Backup in commpresed mode
I got the solution by using the following command, But i don't know it will affect the data itself
#tar ├в cvf - /dat | gzip ├в -fast > /dev/rmt/1m
=======================================
/dat - Data in my server
/dev/rmt/1m - Tape Drive
=======================================
Thanks in Advance
Vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 06:04 AM
тАО06-06-2011 06:04 AM
Re: tar Backup in commpresed mode
I got the solution by using the following command, But i don't know it will affect the data itself
#tar cvf - /dat | gzip --fast > /dev/rmt/1m
=======================================
/dat - Data in my server
/dev/rmt/1m - Tape Drive
=======================================
Thanks in Advance
Vinay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 08:17 AM
тАО06-06-2011 08:17 AM
Re: tar Backup in commpresed mode
Rarely is "the solution" more than "_a_
solution".
> #tar cvf - /dat | gzip [...]
If the tape drive does compression, then how
valuable is gzip here?
If you ever wish to restore these data to
some location other than "/dat", then you
might be happier with a "tar" command using
relative paths rather than absolute paths.
For example:
cd /
tar cf - dat [...]
or:
cd /dat
tar cf - . [...]
Also, I tend to omit the "v" in most cases,
because the verbose listing tends to hide any
warning or error messages. Your choice, of
course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 08:21 AM
тАО06-06-2011 08:21 AM
SolutionAll of the device files listed with the word BEST and the device files 1m, 1mnb will perform data compression. The above command will compress the data in a similar manner in the computer then send the data to gzip which will be unable to compress the compressed data, resulting in the same or slightly BIGGER data to the tape. There will be virtually no difference between gzip compression versus dds tape compression -- you'll still need at least 2, probably 3 or 4 tapes to backup your data.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 11:31 AM
тАО06-06-2011 11:31 AM
Re: tar Backup in commpresed mode
>#tar cvf - /dat | gzip --fast > /dev/rmt/1m
You may need to use dd(1) to reblock before writing to tape. Also, you would need to gunzip before using tar to read the tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2011 11:41 AM
тАО06-06-2011 11:41 AM
Re: tar Backup in commpresed mode
The default tar block size of 10Kb may be smaller than fbackup's.