- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar files bigger than original directory.
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
03-27-2006 07:13 PM
03-27-2006 07:13 PM
Tar files bigger than original directory.
It seem like the tar file bigger than the original directory sizes. My tar files size=2GB but my directory only 900mb in total. This does look right. doesn't it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 07:15 PM
03-27-2006 07:15 PM
Re: Tar files bigger than original directory.
a) du -ks /directory
how did you use tar command execution?
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 07:20 PM
03-27-2006 07:20 PM
Re: Tar files bigger than original directory.
I'm getting:
$ du -sk
951574 /app/ldap/5.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 07:30 PM
03-27-2006 07:30 PM
Re: Tar files bigger than original directory.
951574 /app/ldap/5.2
>>>
~ 930 MB. Ok. Try this,
$ tar -cvf /tmp/trial.tar /app/ldap/5.2
$ du -ks /tmp/trial.tar
what are you getting now?
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 07:47 PM
03-27-2006 07:47 PM
Re: Tar files bigger than original directory.
it seems like you wrote your tar file in the same directory, that you wanted to tar.
So the tar command added the comlete tar file to your tar file.
So you've a file with the double size.
Look for the same name inside the tar file.
You can check it with 'tar tvf
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 07:56 PM
03-27-2006 07:56 PM
Re: Tar files bigger than original directory.
what options do you use in your tar command?
If using -h option (follow links) and the source directory contains links, this could explain differences.
find
to look for links
antonio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 07:58 PM
03-27-2006 07:58 PM
Re: Tar files bigger than original directory.
I would agree with Antonio's analysis.
The tar command would not back up its own tar output file.
A list of files to be backed up is obtained before the tar starts.
I have done a very quick check with tar and the logical links would be backed up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 08:08 PM
03-27-2006 08:08 PM
Re: Tar files bigger than original directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 08:26 PM
03-27-2006 08:26 PM
Re: Tar files bigger than original directory.
I've enough experience with my own users and also external users sending me such tar files.
Of course it can also be a backup of links.
The best would be faze tells us which command in which directory he used.
Peace
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2006 08:32 PM
03-27-2006 08:32 PM
Re: Tar files bigger than original directory.
# cd test
# ll
total 0
# touch file1
# touch file2
# ll
total 0
-rw-rw-rw- 1 root sys 0 Mar 28 10:33 file1
-rw-rw-rw- 1 root sys 0 Mar 28 10:33 file2
# tar -cvf x.tar *
a file1 0 blocks
a file2 0 blocks
# tar -tvf x.tar
rw-rw-rw- 0/3 0 Mar 28 10:33 2006 file1
rw-rw-rw- 0/3 0 Mar 28 10:33 2006 file2
# ll
total 32
-rw-rw-rw- 1 root sys 0 Mar 28 10:33 file1
-rw-rw-rw- 1 root sys 0 Mar 28 10:33 file2
-rw-rw-rw- 1 root sys 10240 Mar 28 10:33 x.tar
Seems x.tar was not backed up into x.tar