Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-07-2003, 09:12 PM   #1
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
anyone knows how to zip a directory?

I want to zip a directory on my server...anyone knows how to do it?

Thanks!
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:18 PM   #2
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
If the directory you want to tar is 'content'
cd content
tar cvf /tmp/content.tar

If that doesn't work, I dunno. I think that will preserve the directory structure, right?
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:26 PM   #3
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
Quote:
Originally posted by p00p
If the directory you want to tar is 'content'
cd content
tar cvf /tmp/content.tar

If that doesn't work, I dunno. I think that will preserve the directory structure, right?
doesn't work.

But thanks anyway

snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:32 PM   #4
beemk
CLICK HERE
 
Industry Role:
Join Date: Jan 2002
Posts: 20,829
go inside the directory 'tar * filename.tar' thats just a guess though i havent used unix in years
__________________
I host with Vacares
beemk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:35 PM   #5
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Fuck! Sorry, bro! Fukkin linux unix shit....

Here is a toot I found in google:

Back up the contents of the etc directory in an archive called etc.tar . Make sure that the archive is created in your own home directory.

cd /
tar -cvf ~/etc.tar etc

Explanation:
Change to the parent of the /etc directory.
Create a backup of etc in the file ~/etc.tar

Does that work?
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:38 PM   #6
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
nopoe...nothing worked so far
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:42 PM   #7
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
I suck ass, sorry I couldn't help.

*bump*
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:46 PM   #8
ThunderBalls
So Fucking Banned
 
Industry Role:
Join Date: Oct 2002
Location: Mesosphere
Posts: 2,926
Well why don't you first let us know what OS you are using...
ThunderBalls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:49 PM   #9
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Try this

tar czvf yourdirectory.tar.gz /path_to_your_directory/directory

That has to work....
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:52 PM   #10
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
I have linux (I think redhat).
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 09:53 PM   #11
snowball179
Confirmed User
 
Join Date: Dec 2002
Posts: 261
Quote:
Originally posted by p00p
Try this

tar czvf yourdirectory.tar.gz /path_to_your_directory/directory

That has to work....
That seem to work...thanks a lot !!
snowball179 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 10:31 PM   #12
ThunderBalls
So Fucking Banned
 
Industry Role:
Join Date: Oct 2002
Location: Mesosphere
Posts: 2,926
And when you want to extract it

gunzip filename.tar.gz

tar -xf filename.tar
ThunderBalls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2003, 11:00 PM   #13
LuSiD
Confirmed User
 
Join Date: Dec 2002
Location: South Florida
Posts: 434
Actually, it's much easier to extract a file with .tar.gz extension with this command:

tar zxvf filename.tar.gz
__________________
I bought a dog the other day... I named him Stay. It's fun to call him... "Come here, Stay! Come here, Stay!" He went insane. Now he just ignores me and keeps typing.
LuSiD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-08-2003, 12:50 AM   #14
Plugger
Confirmed User
 
Industry Role:
Join Date: Jul 2001
Location: North Coast
Posts: 592
you can do:

tar -cpvf TAR_FILE_NAME.tar DIR

Where TAR_FILE_NAME is the name of the tar file to be created and DIR is the name of the DIR to be tarred. Be sure to be in the DIR aboive the dir to be tarred.

The -c means create, the p mean preserve permissions, the v mean verbose (so you can see what is being tarred), and the f mean create the specified file.

A real worl example would be:

If you are in /usr/home/mydir and there is a site directory called site, you could tar the whole thing with:

tar -cpvf site.tar site

That would create the file site.tar that would include everyting in the DIR /usr/home/mydir/site

Make sense?
Plugger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.