English  France













If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
  #1 (permalink)  
Old 09-06-2009, 02:26 AM
UnderHost's Avatar
UnderHost Management
 
Join Date: Jul 2008
Posts: 588
Default How create archives via SSH?

Just like with the operating system running on your home computer, your server can create archives (”zip” files, compress files, to put it differently).

While creating archives through SSH isn’t as straight forward as with your own computer, it is possible.

We’ll be going over how to create three types of archives today: tar (.tar), gzipped tar (.tar.gz) and zips (.zip).

Tar

A tar archive is an archive that compresses all files included as a single file.

Code:
tar -cf archive.tar list of files separated by spaces
Gzipped Tar

A gzipped tar is a tar archive that has also been run through gzip to compress it further. This results in a smaller filesize.

Code:
tar -cfz archive.tar.gz list of files separated by spaces
Zip

A zip archive is the most popular (and widely support) archive type. With a zip archive, each file included in compressed separately. In theory, this would provide better compression due to the varying types of files that may be included. In practice, this zip archives are usually larger than their tar equivalents.

Code:
zip archive.zip list of files separated by spaces
__________________
UnderHostProviding Affordable and Quality USA Hosting & Offshore cPanel Hosting
24/7 Rapid Support / 99.9% Uptime Guarantee / Shared / Reseller / VPS / Dedicated
Premium VPSUSA Cloud Virtual Private Servers - Dedicated and Scalable Resources - Parallels® Virtuozzo
Hong Kong - Singapore - USA - Canada - Netherlands - UK - Germany - Panama - Malaysia
Reply With Quote
underhost.us
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Loading...


All times are GMT -4. The time now is 04:41 PM.
Copyright © 2010 UnderHost Networks Ltd






Partners
Underhost Facebook  Underhost Twitter

Copyright © 2011 UnderHost Networks Ltd