[Commands]Unix -- Compress & Decompress

01/22/2013 11:51 |VMP|#1
Hi

I am here to leave some commands useful when you want to make backups of files on your server, or you want to compress the Serverfiles to send to the dedicated server or something else:


Compress:

Code:
tar -zcvf filename.gz directory
Example:

Code:
tar -zcvf metin2.gz /home/metin2
To Decompress:

Code:
tar -zxvf filename.gz -C /directory
Example:

Code:
tar -zxvf metin2.gz -C /home


Other commands to Compress and Decompress:

Compress:
Code:
tar cvf filename.tar.gz /directory
Example:

Code:
tar cvf metin2.tar.gz /home/metin2
To Decompress:

Code:
cd /directory
Code:
tar xvf filename.tar.gz
Example:

Code:
cd /home
Code:
tar xvf metin2.tar.gz
Well, that is all (:

Kind regards,

VMP.
01/22/2013 11:58 Prince43™#2
You know that is Basics of VBOX that all must to know it when you make a Server ? In all Serverfile releases are all Codes or show on website from FreeBSD ;)

Kind Regards

Prince43™
01/22/2013 12:12 german1337#3
absolute linux basics :)
01/22/2013 12:12 |VMP|#4
Yes I know lol, but I am sure that there is still people that do not know this, thats why I made this thread.. Problem¿
01/22/2013 13:05 iFamouZ<3#5
Basic Skills :awesome:
01/22/2013 13:23 Prσfizσckєr94#6
[Only registered and activated users can see links. Click Here To Register...]
01/22/2013 13:29 |VMP|#7
And: [Only registered and activated users can see links. Click Here To Register...]

My thread is in English... (:
01/22/2013 18:12 [SA]Signe#8
Very useful!
Thanks a lot :*



Kind Regards
-Signe
01/22/2013 20:56 load01#9
Normale Freebsd befehle... Gibts in anderen Foren und hier auch schon n Paar mal^^ Aber trotzdem hilfreich für Leute die kein Deutsch können..
01/23/2013 00:58 |VMP|#10
Quote:
Originally Posted by load01 View Post
Normale Freebsd befehle... Gibts in anderen Foren und hier auch schon n Paar mal^^ Aber trotzdem hilfreich für Leute die kein Deutsch können..
Ja :D