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 11-18-2005, 03:10 PM   #1
muneebs
LQ Newbie
 
Registered: Jan 2005
Posts: 15

Rep: Reputation: 0
How to make an archive without using diskspace urgent


is there a way that i can show a directory as one single file to download. The problem is that i only have a web access plus telnet access toa server. Now there are some 20 directories with each 4Gb in size. I Have linked the apache to the directory but it is very time consuming to download each file one by one. Ofcouse the other approach is to tar them and then download at once but here comes the problem the hard disk is nearly full so i cant create a tar. please answer quickly...as i am short of time
 
Old 11-18-2005, 03:42 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
I don't think you're going to be able to do this, sorry to say. Archives take up space by nature, and while you can gzip a single file and have it take the original file's place, you cannot do this for directories or multiple files.

If you could download one of the 4gb directories, then delete it you may have room to tarball the others?
 
Old 11-18-2005, 03:48 PM   #3
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Not quite sure what you mean, but wget allows you to do recursive downloads after you specify the root folder - http://www.gnu.org/software/wget/man...l-Options.html
 
Old 11-18-2005, 04:26 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
whilst really hating the use of "urgent" in the title here (i'm in no rush i can assure you... ) i'd suggest trying to tar to a named pipe and sucking that over apache. I've not tried this at all, and technially a wget -r is simpler, but this is what you actually asked... so try "mkfifo /var/www/html/backuppipe-dir1" then a "tar -cvjf /var/data/dir1 /var/www/html/backuppipe-dir1" then just download that file (via wget) and with a bit of luck that'll work. again i've just thought that up now, do not know if it would work...
 
  


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
OMFG, where is that diskspace going to .. Manu-M *BSD 4 09-03-2004 05:47 PM
[ URGENT ] Make bootloader boot windows default !!! Mandrake 10.0 ninja-assassin0 Mandriva 2 04-05-2004 02:46 PM
diskspace.... yenonn Slackware 5 03-19-2004 08:39 PM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 04:02 PM
Make an archive readable aizkorri Programming 4 03-07-2002 12:01 PM


All times are GMT -5. The time now is 02:40 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