Julian Klewes

how-to tar.gz a directory

Tagged

Categorized
Dated
This article was posted in SeptemberOctober 18, 2007







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.

If you enjoyed this post, make sure you subscribe to my RSS feed!

share me please

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













comment? jump to the form



archives | sitemap | contact | tos

Top
advertise
advertise

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

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