<?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>gHacks technology news &#187; tar</title>
	<atom:link href="http://www.ghacks.net/tag/tar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 03:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create Archives with File Roller</title>
		<link>http://www.ghacks.net/2009/02/26/create-archives-with-file-roller/</link>
		<comments>http://www.ghacks.net/2009/02/26/create-archives-with-file-roller/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 21:22:49 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[File Roller]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[untarring]]></category>
		<category><![CDATA[unzipping]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=10762</guid>
		<description><![CDATA[There are a number of reasons you would need to an archive. You might need to create backup archives of files, or you might want to be able to store project files together. Whatever your reason, the GNOME File Roller tool makes creating archives simple. File Roller is the Winzip of Linux.
Of course you can [...]]]></description>
			<content:encoded><![CDATA[<p>There are a number of reasons you would need to an archive. You might need to create backup archives of files, or you might want to be able to store project files together. Whatever your reason, the GNOME File Roller tool makes creating archives simple. File Roller is the Winzip of Linux.</p>
<p>Of course you can do the same thing, quickly, from the command line. But, for many, the choice between a user-friendly GUI tool and the command line is a no-brainer.</p>
<p><span id="more-10762"></span>With File Roller you can both create archives and unpack archives. File Roller deals with the following types:</p>
<ul>
<li>.tar</li>
<li>.tar.gz</li>
<li>.tar.bz2</li>
<li>.tar.lzma</li>
<li>.jar</li>
<li>.ar</li>
<li>.cbz</li>
<li>.zip</li>
</ul>
<p>File Roller also does automatic archive typing, so when you are opening an archive you do not have to declare the type.</p>
<p><strong>Running File Roller</strong></p>
<div id="attachment_10796" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/02/file_roller_main.png"><img class="size-medium wp-image-10796" src="http://www.ghacks.net/wp-content/uploads/2009/02/file_roller_main-500x400.png" alt="File Roller Main Window" width="300" height="240" /></a><p class="wp-caption-text">File Roller Main Window</p></div>
<p>From the GNOME main menu you will find File Roller in the Accessories sub-menu of the Applications menu. When File Roller opens you will be presented with a fairly blank window.</p>
<p>From the main window you can either open an archive for unpacking or create a new archive. When you create a new archive what you are doing is first creating a folder that will contain all of the files, and then File Rollers packs everything up for you automatically.</p>
<p>Let&#8217;s create an archive for example&#8217;s sake.</p>
<p><strong>Creating An Archive</strong></p>
<p>The first thing to do is click the New Button. When you do this a File dialog will open where you will name your archive. This window can be deceiving because it looks like it wants you to select a file. That is not the case. What you want to do is enter the name of your new Archive in the <strong>Name</strong> text field. Once you have done that select the type of archive you want to create. After you have taken care of those two options, click the Create button.</p>
<p>At first glance you might think nothing happened. Look again at the title bar of the File Roller window and you will notice the file name of your new archive (see the image to the right).</p>
<div id="attachment_10797" class="wp-caption alignright" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/02/file_roller_titlebar.png"><img class="size-medium wp-image-10797" src="http://www.ghacks.net/wp-content/uploads/2009/02/file_roller_titlebar-500x142.png" alt="TEST.tar.gz" width="300" height="85" /></a><p class="wp-caption-text">TEST.tar.gz</p></div>
<p>Now it&#8217;s time to add files and/or folders to your archive. To add a file(s) click the Add Files button. To add multiple files at once click and hold the Ctrl key as you select files. Once you are satisfied with the files you have added click the Add button. What you will see now is the main File Roller window with your files included.</p>
<div id="attachment_10798" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/02/file_roller_files.png"><img class="size-medium wp-image-10798" src="http://www.ghacks.net/wp-content/uploads/2009/02/file_roller_files-500x294.png" alt="Your Archive Is Ready" width="300" height="176" /></a><p class="wp-caption-text">Your Archive Is Ready</p></div>
<p>You don&#8217;t have to save your archive. Once the files are added, the archive is ready. You can check your home directory and you will find it waiting for you.</p>
<p>Don&#8217;t think, however, the only thing you can now do is unpack your archive. With this archive open you can add more files or directories. simply go through the process again to add more.</p>
<p><strong>Extracting an Archive</strong></p>
<p>Extracting an archive is very simple. Open a new session of File Roller, click the Open button, select the archive you want to extract, and click the Open button. Once the archive is open you will see the entire contents of the archive. That doesn&#8217;t mean the archive is unpacked. In order to unpack the archive you have to hit the Extract button. Once you do that you will have to select a location to extract the contents to. This is a nice feature because, without this step, you could easily fill your ~/ directory with the contents of the archive.</p>
<p><strong>Final Thoughts</strong></p>
<p>I have always been a fan of the command line, because I was weened on Linux with the command line. But for those who do not have the time or inclination to learn the command line, tools like File Roller are ideal for accomplishing every day tasks like unpacking archives.</p>

	Tags: <a href="http://www.ghacks.net/tag/archives/" title="archives" rel="tag">archives</a>, <a href="http://www.ghacks.net/tag/file-roller/" title="File Roller" rel="tag">File Roller</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/tar/" title="tar" rel="tag">tar</a>, <a href="http://www.ghacks.net/tag/untarring/" title="untarring" rel="tag">untarring</a>, <a href="http://www.ghacks.net/tag/unzipping/" title="unzipping" rel="tag">unzipping</a>, <a href="http://www.ghacks.net/tag/zip/" title="zip" rel="tag">zip</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/19/installing-firefox-and-flash-from-source/" title="Installing Firefox and Flash From Source (February 19, 2009)">Installing Firefox and Flash From Source</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/01/22/back-up-your-apache-web-directory-and-database-with-this-simple-script/" title="Back up your Apache web directory and database with this simple script (January 22, 2009)">Back up your Apache web directory and database with this simple script</a> (0)</li>
	<li><a href="http://www.ghacks.net/2007/04/07/auto-zip-attachments-for-thunderbird/" title="Auto Zip Attachments for Thunderbird (April 7, 2007)">Auto Zip Attachments for Thunderbird</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/02/26/create-archives-with-file-roller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Firefox and Flash From Source</title>
		<link>http://www.ghacks.net/2009/02/19/installing-firefox-and-flash-from-source/</link>
		<comments>http://www.ghacks.net/2009/02/19/installing-firefox-and-flash-from-source/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 17:39:41 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Browsing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[bunzip2]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash plugin]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=10663</guid>
		<description><![CDATA[Normally you will hear me professing to always install using your Linux distributions&#8217; package management system. This is true for most cases. There is one case, however, that defies that philosophy: Installing Firefox. I have, on many occasions, installed Firefox using the distributions package management system only to have issue with either plugins or updates. [...]]]></description>
			<content:encoded><![CDATA[<p>Normally you will hear me professing to always install using your Linux distributions&#8217; package management system. This is true for most cases. There is one case, however, that defies that philosophy: Installing <a href="http://www.ghacks.net/tag/firefox/">Firefox</a>. I have, on many occasions, installed Firefox using the distributions package management system only to have issue with either plugins or updates. Because of this, one of the first things I do after a fresh installation is install Firefox from source. This gives you more control over the application which will ensure things run much more smoothly.</p>
<p>Naturally the first thing you will need to do is to download the <a title="Firefox" href="http://www.mozilla.com/en-US/" target="_blank">Firefox source</a>. Once the source is downloaded you have a choice to make. You can install Firefox for each user on the system (if there is only one user you don&#8217;t really have much to worry about) or you can install Firefox &#8220;system wide&#8221;. If you choose to install for just one user then place the source file in the users home directory. If you want to install it &#8220;system wide&#8221; move the file to the <strong>/opt</strong> directory (you will have to have root permissions or use sudo to do this.)</p>
<p><span id="more-10663"></span>Now that the file is in place it is time to unpack the file. More than likely the source package will be in bunzip2 format. To unpack the file you will issue the command <em>bunzip2 firefox-XXX.tar.bz2</em>. (Where <em>XXX</em> this the release number you downloaded.) Once bunzip2 has done its thing you will be left with a tar file <em>firefox-XXX.tar</em> (Again where <em>XXX</em> is the release number.)</p>
<p>When you unpack the Firefox tar file a new directory will be created called simply <strong>firefox</strong>. This new directory contains everything Firefox needs to run. All you have to do now is issue the command <em>~/firefox/firefox </em>to start up the browser.</p>
<p><strong>Starting Firefox</strong></p>
<p>Naturally you don&#8217;t want to have to start Firefox from command line every time you want to run the browser. What you will want to do is edit the preferences in either your menu entries or the Firefox application icons on either your Panel or your desktop. When you do edit the preferences you will want to change the command entry. The entry that came with the pre-installed Firefox will most likely be:</p>
<p><em>firefox %u</em></p>
<p>You will to change that to:</p>
<p><em>~/firefox/firefox %u</em></p>
<p><strong>Installing Flash</strong></p>
<p>Once you have Firefox up and running you can install plugins manually. For instance, installing the Macromedia Flash plugin involves downloading the <a title="Flash" href="http://www.adobe.com/" target="_blank">Flash plugin</a>, (download the source, not the binary) unpacking the file with the command: tar xvzf install_flash_player_10_linux.tar.gz, change into the newly created directory with the command <strong>cd install_flash_player_10</strong>, issue the command <em>./flashplayer-installer, </em>and answer the necessary questions. When you are asked where the installation directory is you will enter <em>~/firefox</em>.</p>
<p>You&#8217;re done. Now you can fire up Firefox and enter <em>about:plugins</em> to make sure the flash player plugin is installed (it will also tell you which flash version you are using.)</p>
<p><strong>Final Thoughts</strong></p>
<p>It may not be the easiest method of installation, but it&#8217;s the best when you want to have more control over your web browser. You will also find it much easier to keep up to date with both the browser itself as well as the plugins you install.</p>

	Tags: <a href="http://www.ghacks.net/tag/bunzip2/" title="bunzip2" rel="tag">bunzip2</a>, <a href="http://www.ghacks.net/tag/firefox/" title="firefox" rel="tag">firefox</a>, <a href="http://www.ghacks.net/tag/flash/" title="flash" rel="tag">flash</a>, <a href="http://www.ghacks.net/tag/flash-plugin/" title="flash plugin" rel="tag">flash plugin</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/source/" title="source" rel="tag">source</a>, <a href="http://www.ghacks.net/tag/tar/" title="tar" rel="tag">tar</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/05/04/installing-flash-in-ubuntu-904-with-firefox/" title="Installing Flash in Ubuntu 9.04 with Firefox (May 4, 2009)">Installing Flash in Ubuntu 9.04 with Firefox</a> (25)</li>
	<li><a href="http://www.ghacks.net/2006/12/10/showmedo-free-video-tutorial-website/" title="ShowMeDo Free Video Tutorial Website (December 10, 2006)">ShowMeDo Free Video Tutorial Website</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/05/18/open-xml-viewer-for-microsoft-word-2007/" title="Open XML Viewer For Microsoft Word 2007 (May 18, 2009)">Open XML Viewer For Microsoft Word 2007</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/09/19/mozilla-flash-upgrade-statistics/" title="Mozilla Flash Upgrade Statistics (September 19, 2009)">Mozilla Flash Upgrade Statistics</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/09/04/mozilla-checks-flash-version-after-firefox-updates/" title="Mozilla Checks Flash Version After Firefox Updates (September 4, 2009)">Mozilla Checks Flash Version After Firefox Updates</a> (14)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/02/19/installing-firefox-and-flash-from-source/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Back up your Apache web directory and database with this simple script</title>
		<link>http://www.ghacks.net/2009/01/22/back-up-your-apache-web-directory-and-database-with-this-simple-script/</link>
		<comments>http://www.ghacks.net/2009/01/22/back-up-your-apache-web-directory-and-database-with-this-simple-script/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 18:58:34 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[automated backups]]></category>
		<category><![CDATA[backup-solution]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=10060</guid>
		<description><![CDATA[I administer a lot of web sites. And all of these web sites need backup solutions. Since most of those web sites use LAMP servers it only made sense to set up a backup system using the available, included open source tools. It didn&#8217;t take long to create a solid backup system and, with the [...]]]></description>
			<content:encoded><![CDATA[<p>I administer a lot of web sites. And all of these web sites need backup solutions. Since most of those web sites use LAMP servers it only made sense to set up a backup system using the available, included open source tools. It didn&#8217;t take long to create a solid backup system and, with the help of cron, automate that system so that Apache&#8217;s document root and the website databases were backed up regularly and without user intervention.</p>
<p>The script made use of the following tools: date, cat, tar, mv, and rm. That&#8217;s it. The script will create backups with the date in the file name and then move the backups to a central location. Without further adieu, let&#8217;s get to the script.</p>
<p><span id="more-10060"></span><em>#! /bin/sh</em></p>
<p><em>TMP=&#8221;/tmp/&#8221;</em></p>
<p><em>#Format the date in YEAR-MO-DY format<br />
TODAY=`date +%F`</em></p>
<p><em># Check to see if there is a lastbackup file in /tmp, if not create it,<br />
# if so then set LAST equal to $TODAY<br />
if [ -f /tmp/lastbackup ]; then<br />
LAST=`cat /tmp/lastbackup`<br />
else<br />
LAST=$TODAY<br />
fi</em></p>
<p><em># Set the web directory backup name to the following<br />
WEB_FILENAME=&#8221;inc-&#8221;$TODAY&#8221;-web.tar.gz&#8221;</em></p>
<p><em># Set database backup name to the following<br />
DB_FILENAME=&#8221;inc-&#8221;$TODAY&#8221;-db.tar.gz&#8221;</em></p>
<p><em># this tars up my web directory into web.tar.gz tarball.<br />
/bin/tar -czf $TMP$WEB_FILENAME &#8211;after-date=$LAST /var/www/html</em></p>
<p><em># Move the web back to the backup directory<br />
/bin/mv $TMP$WEB_FILENAME /data</em></p>
<p><em># Remove web backup file from temp director<br />
rm $TMP$WEB_FILENAME</em></p>
<p><em># this tars up my database directory into $TODAY-db.tar.gz tarball.<br />
/bin/tar -czf $TMP$DB_FILENAME &#8211;after-date=$LAST /var/lib/mysql</em></p>
<p><em># Move the backup database to the backup directory<br />
/bin/mv $TMP$DB_FILENAME /data</em></p>
<p><em># Remove web backup file from temp directory<br />
rm $TMP$DB_FILENAME<br />
</em></p>
<p>What I wanted this to do is create daily backups and move the backups to the <strong>/data</strong> directory on the drive housing the server. These backups will be saved for one month. After the month is completed i have a second script that deletes the months backups prior to running the next backup (so there is always a backup to fall to). How I made use of this script is simple. I save the script (called <strong>backup.sh</strong>) in the root user directory and create a second script called <strong>rm_backups.sh</strong> that looks like this:</p>
<p><em>#! /bin/sh</em></p>
<p><em>rm /data/*gz</em></p>
<p>With these two files in place I create two cron entries. The first cron entry is for running the <strong>backup.sh</strong> script and looks like:</p>
<p>0 23 * * *     ~/backup.sh</p>
<p>The second cron entry is for running the <strong>rm_backups.sh</strong> script and looks like:</p>
<p>0 20 1 * *     ~/rm_backups.sh</p>
<p>Both of the above cron jobs are created as the root user.</p>
<p><strong>Final Thoughts</strong></p>
<p>Naturally this solution could be easily modified (using such tools rsync) to set up an offsite backup solution. What should be obvious is that creating a simple, flexible server backup system on Linux is easy. With the help of a little ingenuity, you can create your own automated backup service.</p>

	Tags: <a href="http://www.ghacks.net/tag/automated-backups/" title="automated backups" rel="tag">automated backups</a>, <a href="http://www.ghacks.net/tag/backup-solution/" title="backup-solution" rel="tag">backup-solution</a>, <a href="http://www.ghacks.net/tag/backups/" title="backups" rel="tag">backups</a>, <a href="http://www.ghacks.net/tag/cat/" title="cat" rel="tag">cat</a>, <a href="http://www.ghacks.net/tag/cron/" title="cron" rel="tag">cron</a>, <a href="http://www.ghacks.net/tag/date/" title="date" rel="tag">date</a>, <a href="http://www.ghacks.net/tag/lamp/" title="LAMP" rel="tag">LAMP</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/tar/" title="tar" rel="tag">tar</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/11/using-cron-to-automate-linux-tasks/" title="Using Cron to Automate Linux Tasks (January 11, 2009)">Using Cron to Automate Linux Tasks</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/02/15/quick-archiving-in-gnome/" title="Quick Archiving in GNOME (February 15, 2009)">Quick Archiving in GNOME</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/" title="Linux Back In Time: Backup made easy (October 10, 2009)">Linux Back In Time: Backup made easy</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/02/19/installing-firefox-and-flash-from-source/" title="Installing Firefox and Flash From Source (February 19, 2009)">Installing Firefox and Flash From Source</a> (8)</li>
	<li><a href="http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/" title="Install phpmyadmin for easy MySQL administration (December 20, 2008)">Install phpmyadmin for easy MySQL administration</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/01/22/back-up-your-apache-web-directory-and-database-with-this-simple-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
