LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2009, 03:54 PM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 33
Howto tar X11R6 directory


I am trying to archive X11R6 directory with that command

Code:
tar cvzf /freeagent/\@Linux/backups/X11R6.tar.gz /usr/X11R6
i try also

Code:
tar cvzf /freeagent/\@Linux/backups/X11R6.tgz /usr/X11R6
but it creates files 200-235Kb. I am sure that the folder is more bigger than that?

What i am not doing well?
 
Old 12-05-2009, 04:18 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Well, "much bigger?" No, I don't think so. If you want to verify the archive, you could first make sure it contains all the files you want:

Code:
tar tzvf filename.tar.gz
Or uncompress it and do a recursive binary diff between that directory and /usr/X11R6.

Also, why the '@' character in your directory name? Yuck!

Last edited by jhwilliams; 12-05-2009 at 04:22 PM.
 
Old 12-05-2009, 04:19 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
So how big is that directory before tarring?

Example:
Code:
[root@Ath etc]# du -sh rc.d
160K    rc.d               
[root@Ath etc]# tar -czvf rcd.tar.gz rc.d

 <snip>

[root@Ath etc]# du -sh rcd*
12K     rcd.tar.gz
> 10:1 compression
 
Old 12-05-2009, 05:40 PM   #4
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by jhwilliams View Post
Also, why the '@' character in your directory name? Yuck!
I am new to linux and that is from xp on my external drive, which I use for temporally data holder. I added it to see this directory on top of others. Probably I will delete it later.


Code:
du -h /usr/X11R6
gives 36K

which is weird. Compressed file is 200K. When browsing from Dolphin there are 6 directories with many files in them. Can't be only 36K.

Last edited by konzo; 12-05-2009 at 05:46 PM.
 
Old 12-05-2009, 05:49 PM   #5
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 33
oops. i try
Code:
ls -la
and just see that the directories are links. sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
Installing X11R6.8.2-src.tar.gz in suse 9.1? blavish Linux - Newbie 5 09-30-2005 06:00 AM
How Can I tar This Directory? Xian Linux - General 4 06-17-2005 07:32 PM
tar help - how to tar to a different directory thick_guy_9 Linux - Software 2 03-10-2005 05:35 PM


All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration