LinuxQuestions.org
Visit Jeremy's Blog.
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 08-08-2003, 06:09 AM   #1
ferrantepunto
Member
 
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Rep: Reputation: 15
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 theres 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. Ive 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.
 
Old 08-08-2003, 09:12 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
what about using some sort of compression,like bzip2 or gunzip along with tar?
 
Old 08-08-2003, 11:00 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 48
AFAIK, tar does not, by default (possibly at all), use temporary files.
What command did you use?
 
Old 08-09-2003, 04:53 PM   #4
ferrantepunto
Member
 
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15
The command that Im using is this:

tar -cvpMf /dev/tape /[0-9A-Za-oq-z]*

to exclude the /proc directory, that blows the copy process. Im 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.
 
Old 08-09-2003, 05:11 PM   #5
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
How about
Code:
tar -cvpMf /dev/tape / --exclude /proc
to exclude the /proc dir?

Ian
 
Old 08-09-2003, 05:57 PM   #6
ferrantepunto
Member
 
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks for your suggestion, Ill 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? (Im not using compression). If I use compression, how can I restore the tape data?

Thanks.
 
Old 08-09-2003, 11:37 PM   #7
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Rep: Reputation: 30
If it did leave anything, it should be in the directory you were in when you issued the tar command (I think)
 
  


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
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM
Free Space Problems chalewa4bambu Linux - Software 2 03-23-2004 12:52 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM


All times are GMT -5. The time now is 09:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration