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 10-10-2004, 11:56 AM   #1
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
tar command help

How would I do this using the tar command. I need to backup a directory or folder on my server using tar and I can't remember the command.

Say I'm in the folder movies on my server and inside movies I have the folder called one. From movies what would the command be to create a compressed file one.tar for example
__________________
icq 1904905
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-10-2004, 11:57 AM   #2
Trafficbrokercom
Confirmed User
 
Join Date: Dec 2002
Posts: 542
tar -cf target.tar directory
Trafficbrokercom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-10-2004, 12:00 PM   #3
Magg
Confirmed User
 
Join Date: Feb 2004
Location: ICQ: 132497047
Posts: 4,467
tar -cf one.tar one


to extract:

tar -xf one.tar one
Magg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-10-2004, 12:04 PM   #4
xenophobic
Confirmed User
 
Join Date: Mar 2004
Location: Dallas
Posts: 874
Quote:
Originally posted by Magg
tar -cf one.tar one


to extract:

tar -xf one.tar one
tar is only an archive, to create compressed backups you would need to do
tar -zcf one.tar.gz one

to extract
tar -zxvf one.tar.gz
xenophobic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-10-2004, 12:08 PM   #5
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
rm -r dir

Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-10-2004, 12:20 PM   #6
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
Quote:
Originally posted by juicylinks
rm -r dir

__________________
icq 1904905
Ice 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.