- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar problem
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
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
тАО10-01-2002 05:41 AM
тАО10-01-2002 05:41 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 05:42 AM
тАО10-01-2002 05:42 AM
Re: Tar problem
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
or use fbackup
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 05:45 AM
тАО10-01-2002 05:45 AM
Re: Tar problem
use another method (fbackup or a backup software)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 05:49 AM
тАО10-01-2002 05:49 AM
Re: Tar problem
Could you use 'find' to get the files you want and pipe it into tar?
Cheers
Keely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 05:50 AM
тАО10-01-2002 05:50 AM
Re: Tar problem
One way to try it is to create a specific list of files to go into the tar archive. On a small scale it could work like this:
ls -l
total 10
-rw-r----- 1 jpoff users 325 Oct 1 09:51 a.txt
-rw-r----- 1 jpoff users 325 Oct 1 09:51 b.txt
-rw-r----- 1 jpoff users 325 Oct 1 09:51 c.txt
-rw-r----- 1 jpoff users 325 Oct 1 09:51 d.txt
-rw-r----- 1 jpoff users 18 Oct 1 09:52 file.list
Where file.list contains (excluding the c.txt file):
a.txt
b.txt
d.txt
Then this would work (I'm using the Korn shell):
>tar cvf jp.tar $(
a b.txt 1 blocks
a d.txt 1 blocks
If you have a huge list of files this method probably won't work so good.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 05:55 AM
тАО10-01-2002 05:55 AM
Re: Tar problem
find ! \( -name 'myfile' \) | cpio -ocv. Like 'standard' tar, cpio is limited to files of 2GB. Gnu tar is not limited to 2GB files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 05:58 AM
тАО10-01-2002 05:58 AM
Re: Tar problem
./fileA
./dirA
./dirB/fileB
then tar it up like so ..
# tar cvf /dev/rmt/0m $(cat list)
That way you can try your best to isolate that file that you do not want to back up. Also take not you can do tar append with "tar rvf" which you may find helpful. For instance the "big" file is in /test/bigfile and you want to back up the rest except this, you can tar up everything else then use tar append to all other files in /test expect that "big" file. You would still have to create the list like above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 06:01 AM
тАО10-01-2002 06:01 AM
Re: Tar problem
Tar has a limitation for bigger files more than 2.0gb , you may try GNU tar which works better , ideally why dont you swtich over to fbackup stuff ?
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 07:02 AM
тАО10-01-2002 07:02 AM
SolutionThis works just fine when you have loads of files in a subdirectory but have specific files, or even whole subdirectories, you want excluded.
For example, to dump contents of two data areas, but exclude the "test" sub-directories
you could use...
cd /disk1/live
find data1 data2 -print | egrep -v 'data1/test|data2/test' | tar -cvf /dev/rmt/0m ${TTY}
The above egrep needs the ' ' around the data1/test and data2/test to qualify the use of the | as an "or" operator to the exclusion.
This method is commonly used by our customers (though we actually use a hybrid version of tar that is much more efficient).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2002 11:15 PM
тАО10-01-2002 11:15 PM
Re: Tar problem
Thanks for your help. I went with the Alphameric solution and it worked fine.
John