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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-08-2003, 07:09 AM
|
#1
|
Member
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57
Rep:
|
Problems with tar wasting free HD space
Hi there,
I´ m having certain problems creating tar archives to a tape device. I have a partition with 33 Gb of data, and 2 Gb free. I issued a command to copy all this data to a tape device without problems. At a certain point, the tar job fails and I see that there´s no free space available on the hard disk. I believe that tar creates some sort of temp file to perform the backup to tape, but, now I can´ t recover the space wasted by the "temp" file(s) created by the failed tar job. I´ve searched the hard disk to see if I can find some big temp files, without success.
Another question is how much free space do I need to have to perform this kind of backups using tar?
Any ideas on how to recover this space? Any help will be greatly appreciated.
Cheers.
|
|
|
08-08-2003, 10:12 AM
|
#2
|
Member
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909
Rep:
|
what about using some sort of compression,like bzip2 or gunzip along with tar?
|
|
|
08-08-2003, 12:00 PM
|
#3
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
AFAIK, tar does not, by default (possibly at all), use temporary files.
What command did you use?
|
|
|
08-09-2003, 05:53 PM
|
#4
|
Member
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57
Original Poster
Rep:
|
The command that I´m using is this:
tar -cvpMf /dev/tape /[0-9A-Za-oq-z]*
to exclude the /proc directory, that blows the copy process. I´m not using any compression. I have another question: if I use compression, will tar need extra space to perform the backup? Is there a way to know who or what is filling up the hard disk with logs, data or something? At this moment, the server is without users (the company that uses it is on holiday) but the space keeps filling up.
Thanks again.
|
|
|
08-09-2003, 06:11 PM
|
#5
|
Member
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344
Rep:
|
How about
Code:
tar -cvpMf /dev/tape / --exclude /proc
to exclude the /proc dir?
Ian
|
|
|
08-09-2003, 06:57 PM
|
#6
|
Member
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57
Original Poster
Rep:
|
Thanks for your suggestion, I´ll use it. Two more questions: If tar uses space to create the file before copying to the tape device, where can I find it to erase it, in order to restart the process? (I´m not using compression). If I use compression, how can I restore the tape data?
Thanks.
|
|
|
08-10-2003, 12:37 AM
|
#7
|
Member
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188
Rep:
|
If it did leave anything, it should be in the directory you were in when you issued the tar command (I think)
|
|
|
All times are GMT -5. The time now is 11:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|