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)
-   -   command line to tar backup directory on server... (https://gfy.com/showthread.php?t=426784)

GFED 02-03-2005 10:01 PM

command line to tar backup directory on server...
 
i forget... it it something like...

tar cxvf [filename.tar] [directoryname]

??

dubsix 02-03-2005 10:03 PM

gnu tar....

tar -c file_list or directory_name > outputfile.tar

GFED 02-03-2005 10:04 PM

thanks :)

this saves all permissions and ownerships right?

AndrewKanuck 02-03-2005 10:25 PM

tar -cvf file.tar directory

would be better IMHO

borked 02-03-2005 11:36 PM

tar czf directory.tgz directory

is even better since it will zip the tar file as it is made, thereby saving disk space :winkwink:

the v can be dropped (in czvf) if you don't want it to spew all the filenames out during hte making of the tar


All times are GMT -7. The time now is 04:10 AM.

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