GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   tar command help (https://gfy.com/showthread.php?t=369838)

Ice 10-10-2004 11:56 AM

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

Trafficbrokercom 10-10-2004 11:57 AM

tar -cf target.tar directory

Magg 10-10-2004 12:00 PM

tar -cf one.tar one


to extract:

tar -xf one.tar one

xenophobic 10-10-2004 12:04 PM

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

Juicy D. Links 10-10-2004 12:08 PM

rm -r dir

:Graucho

Ice 10-10-2004 12:20 PM

Quote:

Originally posted by juicylinks
rm -r dir

:Graucho

:1orglaugh :321GFY


All times are GMT -7. The time now is 03:38 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123