Julian Klewes

how-to tar.gz a directory

Tagged

Categorized
Dated 2 years ago






Times read: 1830
Read today: 8
Read last: March 21, 2010

how-to tar.gz a directory

popup tail

Do you know the following situation- You are downloading thousands of (small) files from your ftp (server) and it is annoyingly slow and time consuming… If you have shell access to your server, e.g. you can use Putty, logon and cd to your file directory (often httpdocs or www) and execute the following code:

tar -pczf fatfile.tar.gz *

This will create a tar.hz archive with the name of fatfile.tar.gz
It will include all files of the current directory and all sub-directories.

Now you can easily download this file instead of many small files (as experienced before).
If you don’t have shell access (look- even Dreamhost offers this feature for $6,95/month),
you might consider getting your own Virtual Private Server as I did.


People asked me to put up a donate button or something similar, so here it is: if you care to buy me a beer or Red Bull (I drink the Dutch equivalent called Spam Energy), feel free to donate, anything is appreciated!



h4x3d.com does not host any illegal content. Links/Files referred to are for educational purposes only.

Interact - Leave a comment

Engage in the conversion and leave a comment.
I would much love to hear from you. Please note however that comments are moderated by default. Advertising and rant is welcomed, yet often discarded...
See left/right for additional information













2

4 months ago
November 16th, 2009 6:37 am

butt

i want to butt secks

comment? jump to the form



archives | sitemap
contact | tos

Top

lorem

solarVPS.com - reliale enterprise hosting
you know the game, get in touch with me
3