Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Using tar to archive files
- Date: Wed, 7 Mar 2007 23:37:56 +0900 (JST)
- From: Curt Sampson <cjs@??>
- Subject: Re: [tlug] Using tar to archive files
- References: <45EE48F8.9050506@example.com> <b4d277190703062221l2d4eb0d6ue662e8621fc89fa9@example.com> <45EE67C5.4080002@example.com>
On Wed, 7 Mar 2007, Dave M G wrote:
tar -cvzf archive.tgz -C directory . --exclude directory/subdir
That puts all the files inside the archive underneath a directory named ".".
Which should be fine; "." means the current directory. However, if you really want to get rid of that, you could try
(cd /someplace; tar -cvzf /somewhere-else/archive.tgz .* *)
It looks to me like the default behavior is for empty directories to not be included in the archive. When I create an archive then view it with the Archive Manager application, they don't seem to be there.
I've never seen a tar that doesn't store the empty directories. Are you sure it's not your archive manager that's not displaying them? What does "tar tvzf archive.tgz" say?
cjs -- Curt Sampson <cjs@??> +81 90 7737 2974
- References:
- [tlug] Using tar to archive files
- From: Dave M G
- Re: [tlug] Using tar to archive files
- From: Edmund Edgar
- Re: [tlug] Using tar to archive files
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] (OT) Reverse DNS resolution blues- ISP recommendations?
- Next by Date: Re: [tlug] ruby and python in Japan
- Previous by thread: Re: [tlug] Using tar to archive files [SOLVED]
- Next by thread: [tlug] Excluding a directory with ncftpput
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links