<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SavvyAdmin.com &#187; compression</title>
	<atom:link href="http://savvyadmin.com/tag/compression/feed/" rel="self" type="application/rss+xml" />
	<link>http://savvyadmin.com</link>
	<description>For savvy admins everywhere...</description>
	<lastBuildDate>Fri, 21 Jan 2011 17:53:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Symmetric Key Encryption with GnuPG</title>
		<link>http://savvyadmin.com/symmetric-key-encryption-with-gnupg/</link>
		<comments>http://savvyadmin.com/symmetric-key-encryption-with-gnupg/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 03:59:06 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tar]]></category>
		<category><![CDATA[Zip]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=438</guid>
		<description><![CDATA[If you ever want to quickly protect a file by encrypting it with a simple password, you can use GnuPG and symmetric key encryption for the job. Using this method, you can use industry strength encryption like AES256 and not have to worry about public and private keys. Just remember your password and use PGP [...]
Related posts:<ol>
<li><a href='http://savvyadmin.com/perform-gnupg-functions-within-vim/' rel='bookmark' title='Perform GnuPG Functions Within Vim'>Perform GnuPG Functions Within Vim</a></li>
<li><a href='http://savvyadmin.com/gnupg-context-menu-options-for-gnome-nautilus/' rel='bookmark' title='GnuPG Context Menu Options for Gnome Nautilus'>GnuPG Context Menu Options for Gnome Nautilus</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you ever want to quickly protect a file by encrypting it with a simple password, you can use GnuPG and symmetric key encryption for the job.  Using this method, you can use industry strength encryption like AES256 and not have to worry about public and private keys.  Just remember your password and use PGP compatible software to decrypt the files when needed.</p>
<p>For example, this is how you can encrypt a zip file called <code>backup.zip</code> and output the result to a new file called <code>backup.zip.gpg</code>.</p>
<blockquote><p><code><strong>gpg --symmetric --cipher-algo aes256 -o backup.zip.gpg backup.zip</strong><br />
Enter passphrase: <strong>*******</strong><br />
Repeat passphrase: <strong>*******</strong></code></p></blockquote>
<p>To decrypt the file, the following will work.</p>
<blockquote><p><code><strong>gpg -d -o backup.zip backup.zip.gpg</strong><br />
gpg: AES256 encrypted data<br />
Enter passphrase: <strong>*******</strong><br />
gpg: encrypted with 1 passphrase</code></p></blockquote>
<p>For fun, here&#8217;s how to create a Gzip Tar archive (tar.gz) and encrypt it on the fly.</p>
<blockquote><p><code><strong>tar czvpf - SomeFiles/ | gpg --symmetric --cipher-algo aes256 -o backup.tar.gz.gpg</strong><br />
Enter passphrase: <strong>*******</strong><br />
Repeat passphrase: <strong>*******</strong></code></p></blockquote>
<p>To decrypt and extract in a single command, the following also works.</p>
<blockquote><p><code><strong>gpg -d backup.tar.gz.gpg | tar xzvf -</strong><br />
gpg: AES256 encrypted data<br />
Enter passphrase: <strong>*******</strong><br />
gpg: encrypted with 1 passphrase</code></p></blockquote>
<p>If you&#8217;re curious to know what other ciphers are available to you, simple use the <code>gpg --version</code> command.</p>
<blockquote><p><code><strong>gpg --version | grep Cipher</strong><br />
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH</code></p></blockquote>
<p>Related posts:<ol>
<li><a href='http://savvyadmin.com/perform-gnupg-functions-within-vim/' rel='bookmark' title='Perform GnuPG Functions Within Vim'>Perform GnuPG Functions Within Vim</a></li>
<li><a href='http://savvyadmin.com/gnupg-context-menu-options-for-gnome-nautilus/' rel='bookmark' title='GnuPG Context Menu Options for Gnome Nautilus'>GnuPG Context Menu Options for Gnome Nautilus</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/symmetric-key-encryption-with-gnupg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RAR and UNRAR from Linux CLI</title>
		<link>http://savvyadmin.com/rar-and-unrar-from-linux-cli/</link>
		<comments>http://savvyadmin.com/rar-and-unrar-from-linux-cli/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 18:09:48 +0000</pubDate>
		<dc:creator>gmendoza</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.savvyadmin.com/?p=393</guid>
		<description><![CDATA[Two great packages available to the Linux community are RAR and UNRAR. If you are already familiar with the RAR compression format, these allow you to create, modify and extract RAR archives. For those of you that appreciate the graphical compression application for Gnome called File Roller, these packages enable it to read RAR files. [...]
Related posts:<ol>
<li><a href='http://savvyadmin.com/symmetric-key-encryption-with-gnupg/' rel='bookmark' title='Symmetric Key Encryption with GnuPG'>Symmetric Key Encryption with GnuPG</a></li>
<li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/' rel='bookmark' title='Fixing Dates in Image EXIF Tag Data from Linux'>Fixing Dates in Image EXIF Tag Data from Linux</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Two great packages available to the Linux community are RAR and UNRAR.  If you are already familiar with the RAR compression format, these allow you to create, modify and extract RAR archives.  For those of you that appreciate the graphical compression application for Gnome called File Roller, these packages enable it to read RAR files.  For more information about the RAR format, check out <a href="http://www.rarsoft.com/rar_file.htm" target="_blank">rarsoft.com</a>.</p>
<p>To install from Ubuntu or Debian, its as simple as:</p>
<blockquote><p><strong><code>sudo apt-get install rar unrar</code></strong></p></blockquote>
<p>To list the files in a RAR archive, use the l or v option:</p>
<blockquote><p><strong><code>rar l video.rar</code></strong></p></blockquote>
<p>To decompress a RAR archive called video.rar, simply issue the command:</p>
<blockquote><p><strong><code>unrar e video.rar</code></strong></p></blockquote>
<p>The unrar package is only intended for decompression tasks.  Otherwise, just use the rar command with the e option to extract the files to the current directory.</p>
<blockquote><p><strong><code>rar e video.rar</code></strong></p></blockquote>
<p>To compress a single file called video.avi, adding it to a RAR file called video.rar:</p>
<blockquote><p><strong><code>rar a video.rar video.avi</code></strong></p></blockquote>
<p>To compress a single file called video.avi, splitting it into approximately 50 Mb files:</p>
<blockquote><p><strong><code>rar a -v50000 video.rar video.avi</code></strong></p></blockquote>
<p>This by default creates archive files starting with video.part01.rar, video.part02.rar and following the sequence to completion.  To use the older and better known extension sequence format of .rar, .r00, .r01, etc, use the -vn option like so:</p>
<blockquote><p><strong><code>rar a -v50000 -vn video.rar video.avi</code></strong></p></blockquote>
<p>To compress an entire directory recursively, use the -r option:</p>
<blockquote><p><strong><code>rar a -r Documents.rar Documents/</code></strong></p></blockquote>
<p>To extract the files from an archive, such that the original directory structure is also recreated, use the x command:</p>
<blockquote><p><strong><code>rar x Documents.rar</code></strong></p></blockquote>
<p>There are so many other features available to the RAR format, so be sure to check out the man pages or the packaged documentation.</p>
<blockquote><p><strong><code>man rar<br />
less /usr/share/doc/rar/rar.txt.gz</code></strong></p></blockquote>
<p>(if your version of less supports reading of compressed files)</p>
<p>Related posts:<ol>
<li><a href='http://savvyadmin.com/symmetric-key-encryption-with-gnupg/' rel='bookmark' title='Symmetric Key Encryption with GnuPG'>Symmetric Key Encryption with GnuPG</a></li>
<li><a href='http://savvyadmin.com/quickly-identify-video-file-attributes/' rel='bookmark' title='Quickly Identify Video File Attributes'>Quickly Identify Video File Attributes</a></li>
<li><a href='http://savvyadmin.com/fixing-dates-in-image-exif-tag-data-from-linux/' rel='bookmark' title='Fixing Dates in Image EXIF Tag Data from Linux'>Fixing Dates in Image EXIF Tag Data from Linux</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://savvyadmin.com/rar-and-unrar-from-linux-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

