|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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! |
|
|
|
|
|
#2 |
|
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? |
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
Quote:
But thanks anyway ![]() |
|
|
|
|
|
|
#5 |
|
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? |
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
nopoe...nothing worked so far
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
I suck ass, sorry I couldn't help.
*bump* |
|
|
|
|
|
#8 |
|
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...
|
|
|
|
|
|
#9 |
|
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.... |
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
I have linux (I think redhat).
|
|
|
|
|
|
#11 | |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
Quote:
|
|
|
|
|
|
|
#12 |
|
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 |
|
|
|
|
|
#13 |
|
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. |
|
|
|
|
|
#14 |
|
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? |
|
|
|