Quote:
Originally posted by sameerdes
My server does not have much space and backing up on tape would have taken much time and anyway, I wanted free space temporarily. Hence, I was looking for something, which would compress contents of all sub-directories.
gzip is available on our server
Tar is more than a tape backup program. Tar w/ gzip installed on the server would be able to create a compressed recursive backup of directory that you need backed up. I use this quite frequently when I need a quick backup of a website. I believe tar is recursive from the directory that you started down the tree.
try using:
"tar -cpz * > filename.tar.gz"
I used * as wildcard to take everything in the dir i am in and everythign underneath it, but you can specify any file or dir that you want.