LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2004, 02:10 PM   #1
adler321
LQ Newbie
 
Registered: Apr 2004
Posts: 7

Rep: Reputation: 0
Question Tar troubles


Hi,
Does anyone know how to tell tar to include empty directories?
The trouble is that tar omitts a directory altogether if it is empty.

Is there any good third-party utility/software (free or not free) that will backup the empty directories as well?

Thanks for any thoughts!
 
Old 10-25-2004, 03:15 PM   #2
emathias
LQ Newbie
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 24

Rep: Reputation: 15
Itīs just include the option -f to the tar command (for mantaining folders structure).

e.g. :

%tar -cf outfile.tar empty_folder ... (just for concatenating it)

or

%tar -czf outfile.tar.gz empty_folder ... (for concatenating an zip it)

Last edited by emathias; 10-25-2004 at 03:18 PM.
 
  


Reply



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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
Tar + Tapes = Troubles =@( TheDirtyPenguin Linux - General 1 03-04-2004 11:08 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM
Troubles with tar rebayona Linux - General 7 01-09-2002 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 PM.

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
Open Source Consulting | Domain Registration