Compress files useing SSH

  • Sirius00
  • Newbie
  • Newbie
  • Sirius00
  • Posts: 9

Post 3+ Months Ago

Ehh, im a little new to this SSH thingy.. Or is it SSL... what the difference?

Anyways..

In this black scren im looking at whats the command to compress a folder to tar.zg? I know ho to navigate to the folder and I know how to extract it... But how to I compress it? :roll:

Thanx
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

SSH is the acronym for Secure Shell -- which is nothing more than an encrypted telnet (more or less). It permits you access to the command line of a system.

SSL is Secure Sockets Layer, and while typically is used for securing http transports (https) it can be used for a wide array of other tasks from SSL-based VPN technology to various forms of cryptographic algorithms.

From an extreme high-level, there's your difference.

Using tar to compress a file into tar.gz or .tgz:
Code: [ Select ]

tar -zcvf <new_tar_filename>.tar.gz <filename/directory>

or 

tar -zcvf <new_tar_filename>.tgz <filename/directory>
  1. tar -zcvf <new_tar_filename>.tar.gz <filename/directory>
  2. or 
  3. tar -zcvf <new_tar_filename>.tgz <filename/directory>
  • firetext
  • Born
  • Born
  • firetext
  • Posts: 1

Post 3+ Months Ago

I used this to transfer my joomla site from one server to another by compressing all the files into one package then moving it rather then ftping all the files independantly and it worked like a charm! But I don't understand what the -zcvf stands for?
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

The z is for gzipping which occurs subsequent to the tar (additional compression)
The c is for creating the file (versus adding to another tar)
The v is for verbose (which I won't be in this explanation).
The f is for filename (which is the name that follows -- what you call it)

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 15 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.