<?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 &#124; Latest Tech News, Software And Tutorials &#187; backups</title> <atom:link href="http://www.ghacks.net/tag/backups/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 16:53:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Backup with rsnapshot</title><link>http://www.ghacks.net/2010/05/19/backup-with-rsnapshot/</link> <comments>http://www.ghacks.net/2010/05/19/backup-with-rsnapshot/#comments</comments> <pubDate>Wed, 19 May 2010 11:13:54 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[linux backups]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=25519</guid> <description><![CDATA[If you are looking for a command line utility to handle all of your Linux backup needs, you really need look no further than this tool that bases itself off of the perennial backup favorite rsync. Rsnapshot takes the rsync utility and makes it more useful than it already was. With rsnapshot you can retain multiple [...]]]></description> <content:encoded><![CDATA[<p>If you are looking for a command line utility to handle all of your Linux backup needs, you really need look no further than this tool that bases itself off of the perennial backup favorite rsync. Rsnapshot takes the rsync utility and makes it more useful than it already was. With rsnapshot you can retain multiple point in time backups and rotate them as well. But that is not all you can do with rsnapshot. In fact, this tool is so flexible it would seem the sky is the limit.</p><p>In this article I am going to show you how to install and use the rsnapshot backup utility so that you too can have consistent, reliable backups for your Linux system &#8211; server or desktop.</p><p><span
id="more-25519"></span><strong>Installation</strong></p><p>Before you install you will need to make sure you have (at minimum) both rsync and perl installed on your machine. There are a few ways you can install rsnapshot. You can install from source by downloading the latest .tar.gz file (from the <a
title="rsnapshot download page" href="http://rsnapshot.org/downloads.html" target="_blank">rsnapshot download page</a>) and do the following:</p><ol><li>Open up a terminal.</li><li>Change to the directory the newly downloaded file his being held.</li><li>Issue the command <em>tar xvzf rsnapshot-XXX.tar.gz (</em>Where XXX is the release number) to unpack the archive.</li><li>Issue the command <em>cd rsnapshot-XXX</em> to change into the newly created directory.</li><li>Issue the command <em>./configure.</em></li><li>Issue the command <em>make</em> to build the software.</li><li>Issue the command <em>make install</em> to install the software.</li></ol><p>You could also download and install the pre-compiled binary (in .rpm, .deb, etc) form and install from that. Another way to install rsync is to the open up your Add Remove Software tool, search for rsync, and install from there.</p><p>No matter how you install you will wind up with an executable (<em>rsnapshot) </em>in <strong>/usr/bin/</strong> and a configuration file (<strong>rsnapshot.conf</strong>) in <strong>/etc</strong>. You are ready to begin configuring your backup.</p><p><strong>Configuration</strong></p><p>All of the configuration for rsnapshot happens in the <strong>/etc/rsnapshot.conf</strong> file. Open that up with your favorite text editor (you will need root privileges to do so)  and get ready to get your hands  a little dirty.</p><p>Because everyone&#8217;s set up is different, I am only going to point you to the sections of the configuration file you need to edit for your needs. The configuration file is very well laid out, so you shouldn&#8217;t have any trouble with the configuration. But just in case&#8230;</p><p>The first section you will need to set up is the <strong>SNAPSHOT ROOT DIRECTORY</strong> section. This is where you define the location where your snapshots will be stored.</p><p>The next section (since we are installing this on Linux) is to uncomment out the <em>cmd_cp</em> directive under the <strong>EXTERNAL PROGRAM DEPENDENCIES </strong>section. Also, in this section, if you plan on using Secure Shell (ssh) for remote backups, you will need to uncomment the <em>cmd_ssh<strong> </strong><span
style="font-style: normal">line.</span></em></p><p><em><span
style="font-style: normal">The next section is the <strong>BACKUP INTERVALS </strong>section. Here you have three (with an options fourth) options to set up:</span></em></p><ul><li><em><span
style="font-style: normal">hourly</span></em></li><li><em><span
style="font-style: normal">daily</span></em></li><li><em><span
style="font-style: normal">weekly</span></em></li></ul><p>The default is set up nicely like this:</p><p><em>interval hourly 6</em><br
/> <em>interval daily 7</em><br
/> <em>interval weekly 4</em></p><p>This means you will have six hourly backups (every four hours), seven daily backups (once a day), and four weekly backups (once a week).</p><p>The final section you need to configure is the <strong>BACKUP POINTS / SCRIPTS </strong>section. Here you are going to define what is to be backed up. By default rsnapshot will back up <strong>/home</strong>, <strong>/etc</strong>, and <strong>/usr/local </strong>to the locally defined backup point. You will notice after this section is a very well laid out section of sample backups. Take a look at these closely as they will help you create various types of backups (including remote backups).</p><p><strong>Final step &#8211; cron</strong></p><p>The last thing you need to do (after you save your configuration file) is to set up cron to run the rsnapshot tool. You will want to set up the root users cron for this (so Ubuntu-based distributions will use the command  <em>sudo</em> <em>crontab -e</em>) so issue the command:</p><p><em>crontab -e</em></p><p>and add something like:<br
/> <em>0 */4 * * * root /usr/bin/rsnapshot hourly<br
/> 0 23 * * * root /usr/bin/rsnapshot daily<br
/> 0 23 * * 6 root /usr/bin/rsnapshot weekly<br
/> <span
style="font-style: normal">The above will run <em>rsnapshot</em> hourly ever four hours, daily at 11pm, and weekly on saturday at 11pm.</span></em></p><p><em><span
style="font-style: normal">That&#8217;s it. You&#8217;re backup is ready to go.</span></em></p><p><em><span
style="font-style: normal"><strong>Final thoughts</strong></span></em></p><p><em><span
style="font-style: normal">Make sure you put some thought into your backup plan. After all, it will save you should a disaster strike. The rsnapshot tool is a very handy tool that can take the venerable rsync utility and make it far more useful. </span></em></p><p><em> </em></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/05/19/backup-with-rsnapshot/feed/</wfw:commentRss> <slash:comments>21</slash:comments> </item> <item><title>Linux Back In Time: Backup made easy</title><link>http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/</link> <comments>http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/#comments</comments> <pubDate>Sat, 10 Oct 2009 17:00:23 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[auto backups]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[desktop backup]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=17123</guid> <description><![CDATA[In my recent trend of covering Linux backup tools I have, so far, covered Flyback (&#8220;Quick and easy backups with Flyback&#8220;) and Backerupper (&#8220;Simple gui backup tool Backerupper&#8220;). Both tools are GUI tools that make the process of backing up your Linux files and folders a simple task. This time around I want to add [...]]]></description> <content:encoded><![CDATA[<p>In my recent trend of covering Linux backup tools I have, so far, covered Flyback (&#8220;<a
title="Flyback" href="http://www.ghacks.net/2009/10/08/quick-and-easy-backups-with-flyback/" target="_blank">Quick and easy backups with Flyback</a>&#8220;) and Backerupper (&#8220;<a
title="Backerupper" href="http://www.ghacks.net/2009/10/09/simple-gui-backup-tool-backerupper/" target="_blank">Simple gui backup tool Backerupper</a>&#8220;). Both tools are GUI tools that make the process of backing up your Linux files and folders a simple task. This time around I want to add to this growing list of user-friendly backup tools <a
title="Back in time" href="http://backintime.le-web.org/" target="_blank">Back In Time</a>.</p><p>Back In Time offers two GUI versions: One for GNOME and one for KDE. If you want to run the KDE version of the tool you will have to be running KDE &gt;= 4.1. The difference between the GUIs is minimal, and there are no features on one that are on the other (it&#8217;s all in the different widget sets used.) <span
style="background-color: #ffffff">In this tutorial you will learn how to install and use the Back In Time backup tool.</span></p><p><span
style="background-color: #ffffff"><span
id="more-17123"></span><strong>Installation</strong></span></p><p><span
style="background-color: #ffffff">Installing Back In Time is simple. Go to the applications&#8217; <a
title="Back In Time Download Page" href="http://backintime.le-web.org/download_page/" target="_blank">download page</a> and download the necessary files. If you are installing on Ubuntu you will need:</span></p><p><span
style="background-color: #ffffff"><a
title="backintime-common" href="http://backintime.le-web.org/download/backintime/backintime-common-0.9.26_all.deb" target="_blank">backintime-common</a></span></p><p><span
style="background-color: #ffffff">and either:</span></p><p><span
style="background-color: #ffffff"><a
title="backintime-gnome" href="http://backintime.le-web.org/download/backintime/backintime-gnome-0.9.26_all.deb" target="_blank">backintime-gnome</a></span></p><p><span
style="background-color: #ffffff">or</span></p><p><span
style="background-color: #ffffff"><a
title="backintime-kde" href="http://backintime.le-web.org/download/backintime/backintime-kde4-0.9.26_all.deb" target="_blank">backintime-kde</a></span></p><p>Before you can install this application you will need to first install the meld tool. To do this issue the command:</p><p><em>sudo apt-get install meld</em></p><p><span
style="background-color: #ffffff">Once Meld is installed you can install Back In Time. To do this you just need to open up a terminal window, change to the directory you downloaded the files into, and issue the command:</span></p><p><span
style="background-color: #ffffff"><em>sudo dpkg -i backintime*</em></span></p><p>which will install both necessary files.</p><p>After the application is installed you are ready to start backing up.</p><p><strong>Usage</strong></p><p>To start up Back In Time go to the System Tools sub-menu of the Applications menu. There ar two entries: Back In Time and Back  In Time (root). You will want to run the non-root entry to back up your standard files.</p><div
id="attachment_17131" class="wp-caption alignleft" style="width: 250px"><a
rel="attachment wp-att-17131" href="http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/backintime_settings/"><img
class="size-thumbnail wp-image-17131 " src="http://www.ghacks.net/wp-content/uploads/2009/10/backintime_settings-300x300.png" alt="Figure 1" width="240" height="240" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you fire up Back In Time for the first time you will be greeted, not with the main window, but the Settings Window (see Figure 1).  Before you can actually set up a back up you have to configure a backup directory. This is done in the General tab of the Settings window.</p><p>By default the Schedule will be disabled. This is fine if you want to do a one-time backup. But for scheduled backups you will need to select a frequency from the Schedule drop down.</p><p>You will also have to add at least one folder to back up. To do this go to the Include tab and add a directory to be backed up. You can, of course, add more than one directory to back up.</p><p>From within the Auto-remove tab in the Settings window there is a setting I highly recommend. If you check the &#8220;Smart Remove&#8221; check box Back In Time will:</p><ul><li><span
style="background-color: #ffffff">Keep all snapshots from today and yesterday.</span></li><li><span
style="background-color: #ffffff">Keep one snapshot from last week and one from two weeks prior.</span></li><li><span
style="background-color: #ffffff">Keep one snapshot per month for all previous months of the year.</span></li><li><span
style="background-color: #ffffff">Keep one snapshot per year for all previous years.</span></li></ul><p><span
style="background-color: #ffffff">If you have any need to retain snapshots, this is a fairly safe bet.</span></p><p><span
style="background-color: #ffffff">From within the Exclude tab you can configure Back In Time for folders and/or files to not include in the backup. You can also add patterns to exclude, which can include wildcards.</span></p><p><span
style="background-color: #ffffff">After you have all of your settings taken care of click OK and Back In Time is set up and ready to go. </span></p><p><span
style="background-color: #ffffff"><strong>What about that scheduled backup?</strong></span></p><p>Here&#8217;s the deal &#8211; Back In Time does not have a Panel icon to keep the application running in the background. So unless you plan on keeping the application open, you have to have another means to make sure your backups happen.  In order to do this you have to know the command line portion of the tool. And then you will need to add the right command as a cron job. Without getting too complicated, the command to run Back In Time from the command line will be:</p><p><em>backintime -b</em></p><p>Which will back up any necessary job you have created.</p><p>With that in mind you can set up the <em>backintime</em> command to be run from your crontab. Say, for example, you want your backintime job to run every Sunday. You could enter a cronjob (started by issuing the command <em>crontab -e</em>) and enter a job like:</p><p><em>* * * * 7 /usr/bin/backintime -b</em></p><p>Save that cron job and it will be set up to run every Sunday.</p><p><strong>Final thoughts</strong></p><p>Back In Time is just as user-friendly as the other backup tools and adds a command line tool for added flexibility. I highly recommend Back In Time for your simple desktop backup jobs.</p><p><span
style="background-color: #ffffff"> </span></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Quick Archiving in GNOME</title><link>http://www.ghacks.net/2009/02/15/quick-archiving-in-gnome/</link> <comments>http://www.ghacks.net/2009/02/15/quick-archiving-in-gnome/#comments</comments> <pubDate>Sun, 15 Feb 2009 15:09:05 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[archiving]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[compression]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[GNOME]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10569</guid> <description><![CDATA[I back up a lot. I have scripts that do automated backups and I often backup to CD. But there are times when I want to be able to do a quick and dirty backup of a single directory, in order to email a directory, or so that directory can be added to a later [...]]]></description> <content:encoded><![CDATA[<p>I back up a lot. I have scripts that do automated backups and I often backup to CD. But there are times when I want to be able to do a quick and dirty backup of a single directory, in order to email a directory, or so that directory can be added to a later backup. There are numerous reasons why. Fortunately there is a very fast method of creating an archive (even a compressed archive) in the GNOME desktop.</p><p>For most old-school Linux users, creating archive consisted of dropping to the command line and issue a command like <em>tar cfz directory.tgz directory</em> (where <em>directory</em> is the name of the directory to archirve). But new users fear the command line. So, thanks to GNOME, there is an easier way to achieve this.</p><p><span
id="more-10569"></span></p><div
id="attachment_10570" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/02/gnome_archive.png"><img
class="size-medium wp-image-10570" src="http://www.ghacks.net/wp-content/uploads/2009/02/gnome_archive-500x422.png" alt="The folder right click menu." width="300" height="253" /></a><p
class="wp-caption-text">The folder right click menu.</p></div><p>If you open up the Nautilus File Manger and right click on a folder you will see the menu shown in the image to the left.</p><p>By clicking the &#8220;Create Archive&#8221; entry a new window will appear that allows you to configure the archive you want to create. This new window allows you to configure the type of compression, the location and name of the archive, and (if you have encryption enabled), add encryption and split into volumes.</p><div
id="attachment_10571" class="wp-caption alignright" style="width: 273px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/02/archive_options.png"><img
class="size-full wp-image-10571" src="http://www.ghacks.net/wp-content/uploads/2009/02/archive_options.png" alt="Configure your archive" width="263" height="112" /></a><p
class="wp-caption-text">Configure your archive</p></div><p>Once you have configured your archive click the Create button and the archive will automatically be placed in the Location you chose.</p><p>Take note of the file extension. This extension will determine if the archive is compressed or not. There are eight possible options to choose from. If you want compression I would suggest going with either the .tgz or the tar.bz2 extensions.</p><p><strong>Final Thoughts</strong></p><p>If you&#8217;ve ever wanted simple and fast archiving, GNOME has just the tool for you. This method of archiving folders can not be topped for ease of use.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/02/15/quick-archiving-in-gnome/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Easy CD Burning in GNOME</title><link>http://www.ghacks.net/2009/01/26/easy-cd-burning-in-gnome/</link> <comments>http://www.ghacks.net/2009/01/26/easy-cd-burning-in-gnome/#comments</comments> <pubDate>Mon, 26 Jan 2009 15:43:44 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[cd burning]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[nautilus]]></category> <category><![CDATA[writing cd]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10148</guid> <description><![CDATA[The ability to burn CDs is one of those issues that often perplexes many new users (to any operating system). For Windows users it&#8217;s about finding software to do the job. For OS X users it&#8217;s about knowing where to add a burnlist. For Linux users it&#8217;s just knowing that your operating system can in [...]]]></description> <content:encoded><![CDATA[<p>The ability to burn CDs is one of those issues that often perplexes many new users (to any operating system). For Windows users it&#8217;s about finding software to do the job. For OS X users it&#8217;s about knowing where to add a burnlist. For Linux users it&#8217;s just knowing that your operating system can in fact burn CDs (and what application does the job).</p><p>The good news is that burning CDs in Linux is very simple and doesn&#8217;t require the addition of third-party software. Let&#8217;s take a look at how to handle this job in a default GNOME 2.24.2 installation.</p><p><span
id="more-10148"></span><strong>Where is the application?</strong></p><div
id="attachment_10150" class="wp-caption alignleft" style="width: 284px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/01/gnome_burn_cd_menu1.png"><img
class="size-full wp-image-10150" src="http://www.ghacks.net/wp-content/uploads/2009/01/gnome_burn_cd_menu1.png" alt="Menu Entry" width="274" height="244" /></a><p
class="wp-caption-text">Menu Entry</p></div><p>In the latest GNOME there is an application for burning CDs but you don&#8217;t really need to know where it is or what it is called. Why? If you click on the <strong>Places</strong> menu you will see an entry titled CD/DVD Creator.</p><p>Once you click on this entry a special Nautilus window will open that allows you to drag and drop files into the window for burning.</p><div
id="attachment_10151" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/01/nautilus_burning.png"><img
class="size-full wp-image-10151" src="http://www.ghacks.net/wp-content/uploads/2009/01/nautilus_burning.png" alt="The Burn Window" width="300" height="180" /></a><p
class="wp-caption-text">The Burn Window</p></div><p>Once this new Nautilus window is open you can drag and drop files from other Nautilus windows. Once you have added the files and/or directories you want to burn onto CD you just have to insert a blank disk into your drive and then click the Write To Disk button in the burn window.</p><div
id="attachment_10153" class="wp-caption alignleft" style="width: 234px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/01/burn1.png"><img
class="size-full wp-image-10153" src="http://www.ghacks.net/wp-content/uploads/2009/01/burn1.png" alt="Options" width="224" height="142" /></a><p
class="wp-caption-text">Options</p></div><p>When you click Write To Disk you will then need select your device (if you have more than one), give the disk a name, select the write speed, and click Write.</p><p>A progress window will open during the writing of the disk. When the disk is complete the CD will eject and you&#8217;re finished.</p><p>Simple!</p><p><strong>Final Thoughts</strong></p><p>One of the only downfalls to this system is you can not burn ISO images. For that you will want something like K3B (check out my gHacks article &#8220;<a
title="Burn CD and DVD images with K3B" href="http://www.ghacks.net/2009/01/11/burn-cd-and-dvd-iso-images-with-k3b/" target="_blank">Burn CD and DVD Images with K3B</a>&#8220;). Other than that, the GNOME CD/DVD burn process is as simple as it gets.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/01/26/easy-cd-burning-in-gnome/feed/</wfw:commentRss> <slash:comments>5</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> ]]></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>1</slash:comments> </item> <item><title>Verify File Integrity Of Backups</title><link>http://www.ghacks.net/2009/01/12/verify-file-integrity-of-backups/</link> <comments>http://www.ghacks.net/2009/01/12/verify-file-integrity-of-backups/#comments</comments> <pubDate>Mon, 12 Jan 2009 11:23:38 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[check files]]></category> <category><![CDATA[file check md5]]></category> <category><![CDATA[file integrity]]></category> <category><![CDATA[md5]]></category> <category><![CDATA[md5 hashes]]></category> <category><![CDATA[portable software]]></category> <category><![CDATA[verify backups]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9837</guid> <description><![CDATA[Creating backups is just one step in taking precautions that sensible data can be recovered if anything should happen to a computer&#8217;s storage device. Depending on the location they are stored in backups can also be subject to change. This can for example be the case if parts of the backup storage become unreadable. It [...]]]></description> <content:encoded><![CDATA[<p>Creating backups is just one step in taking precautions that sensible data can be recovered if anything should happen to a computer&#8217;s storage device. Depending on the location they are stored in backups can also be subject to change. This can for example be the case if parts of the backup storage become unreadable.</p><p>It is therefor recommended to verify the file integrity of backups regularly to make sure that they can still be used to recover data if the need should arise. Nothing&#8217;s worse than to realize that the backups are unusable.</p><p><a
href="http://www.exactfile.com/">File Check MD5</a> is a small portable software for Windows that has been designed for that specific purpose. It can be used to compute MD5 hashes of all files in a specific root folder including subfolders. All computed MD5 hashes will be stored in a text file in that root folder.</p><p><span
id="more-9837"></span><img
src="http://www.ghacks.net/wp-content/uploads/2009/01/verify_file_integrity-500x372.jpg" alt="verify file integrity" title="verify file integrity" width="500" height="372" class="alignnone size-medium wp-image-9838" /></p><p>The Check Files option can then be used to check files on the backup storage with the MD5 hashes of the original files to ensure data integrity.</p><p>One interesting option of the software program is to test the md5 hashes that have been previously computed if the text file is located in the same folder as the executable. It would then only be a matter of adding the File Check MD5 software and the text file with the MD5 hashes to the root of the backup to be able to automatically verify the file integrity.</p><p>The only thing that is missing is the ability to select a different storage location for the MD5 hashes. This would make it possible to run the software on read only devices as well.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/01/12/verify-file-integrity-of-backups/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Avanquest Software AutoSave Essentials Competition</title><link>http://www.ghacks.net/2008/09/29/avanquest-software-autosave-essentials-competition/</link> <comments>http://www.ghacks.net/2008/09/29/avanquest-software-autosave-essentials-competition/#comments</comments> <pubDate>Mon, 29 Sep 2008 19:41:50 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[automatic backups]]></category> <category><![CDATA[autosaves essential]]></category> <category><![CDATA[avanquest software]]></category> <category><![CDATA[backup software]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[ghacks]]></category> <category><![CDATA[offer]]></category> <category><![CDATA[software promotion]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=7300</guid> <description><![CDATA[AutoSave Essentials is a new commercial backup software developed by Avanquest which can be used to backup important data easily with minimal user interaction. That is the biggest selling point of the software. It comes with three predefined backup plans for music, documents and photos minimizing the time a user needs to configure the backup [...]]]></description> <content:encoded><![CDATA[<p>AutoSave Essentials is a new commercial backup software developed by <a
href="http://www.avanquest.com/">Avanquest</a> which can be used to backup important data easily with minimal user interaction. That is the biggest selling point of the software. It comes with three predefined backup plans for music, documents and photos minimizing the time a user needs to configure the backup software if he stores his data in the My Documents directory in Windows (because files in that location will be backed up in those plans).</p><p>Additional options are available to save the complete My Documents folder in one backup plan and to save Web Settings which will essentially save Firefox and Internet Explorer cookies and user data. Those predefined backup plans are great for inexperienced users who don&#8217;t feel like configuring a backup software.</p><p>Custom backup plans can be added which offer two additional options. The first is to create a backup plan for specific folders, partitions or drives of the computer while the second creates a backup plan for specific file extensions. The latter will backup all file extensions of the type on all connected drives. Configuring those custom backup plans is a breeze compared to other backup solutions on the market. Everything can be configured with just a few clicks.</p><p><span
id="more-7300"></span><a
href="http://www.ghacks.net/wp-content/uploads/2008/09/autosave_essentials1.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2008/09/autosave_essentials1-500x429.jpg" alt="autosave essentials" title="autosave essentials" width="500" height="429" class="alignnone size-medium wp-image-7302" /></a></p><p><a
href="http://www.avanquest.com/USA/software/autosave-essentials-112304?meta=small-business&amp;cat=pc-essentials&amp;sub=data-protection">AutoSave Essentials</a> provides a good variety of backup locations. The choice ranges from local hard drives, removable storage devices like USB devices and network / ftp storage. The backup software will automatically recognize if a selected device is not present during scheduled backups and will start the backup as soon as the device comes online again.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2008/09/autosave_essentials2.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2008/09/autosave_essentials2-500x385.jpg" alt="autosave essentials" title="autosave essentials" width="500" height="385" class="alignnone size-medium wp-image-7303" /></a></p><p>Backups can be scheduled to run once a day, week, month, during system start, continuously or manually only. Continuously will monitor the selected files and folders all the time and start the backup whenever file operations take place. Each of the operations will take place in the background with virtually no interference with important system processes or other work that takes place at the same time.</p><p>The biggest selling point of AutoSave Essentials is the ease of use. Users who store their important data in the My Documents folder can virtually use the application without interaction of the backup destination drive is the correct one. It works out of the box for those users. Others will have to add backup plans manually but this operating requires minimal user interaction as well.</p><p><object
width="425" height="344"><param
name="movie" value="http://www.youtube.com/v/QTHfdL-AJ_0&#038;hl=en&#038;fs=1"></param><param
name="allowFullScreen" value="true"></param><embed
src="http://www.youtube.com/v/QTHfdL-AJ_0&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p><p>Avanquest was nice enough to provide me with ten full versions of AutoSave Essentials as an early birthday present to celebrate the third birthday of Ghacks on October 3. If you want to win a full copy of AutoSave Essentials let me know in the comments. Regular users will be at an advantage. So, let me know what you would back up with the software. AutoSave Essentials will run on 32-bit editions of Windows XP and Windows Vista.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/09/29/avanquest-software-autosave-essentials-competition/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Zoogmo Secure Peer To Peer Backups</title><link>http://www.ghacks.net/2007/10/13/zoogmo-secure-peer-to-peer-backups/</link> <comments>http://www.ghacks.net/2007/10/13/zoogmo-secure-peer-to-peer-backups/#comments</comments> <pubDate>Sat, 13 Oct 2007 07:45:55 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[secure backups]]></category> <category><![CDATA[true-crypt]]></category> <category><![CDATA[zoogmo]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/10/13/zoogmo-secure-peer-to-peer-backups/</guid> <description><![CDATA[Zoogmo offers a way to securely backup personal data and store that data on so called partner computers. Partner computers can be anything from USB devices, network computers or even the computer of your friend that you can access over the Internet. The advantage of this approach is that you backup will be stored in an encrypted form on an external computer so that it remains accessible in the case of a computer crash.]]></description> <content:encoded><![CDATA[<p>Zoogmo offers a way to securely backup personal data and store that data on so called partner computers. Partner computers can be anything from USB devices, network computers or even the computer of your friend that you can access over the Internet. The advantage of this approach is that you backup will be stored in an encrypted form on an external computer so that it remains accessible in the case of a computer crash.</p><p>The backups can be scheduled and run automatically in the background. Prior to using the software you need to create an account at the Zoogmo website. Those information are used to encrypt the data that is backed up on your computer which means that if you loose those information the backed up data will be lost.</p><p>Zoogmo currently has some limitations. The maximum file size is only 50 Megabytes which might be not enough for users who would like to backup larger files. Since this is currently a beta it is most likely that the limit will be raised in the future.</p><p><span
id="more-2121"></span>While Zoogmo is great for creating external secure backups I would suggest to use a combination of True Crypt and an external hard drive if you want to backup your files locally. The advantage of course is that you do not need to connect to the Zoogma server at all before you can access your backups.</p><p>Take a look at this video that explains the concept of Zoogmo.</p><p><object
width="425" height="350"><param
name="movie" value="http://www.youtube.com/v/DRmPhQLvhtY"></param><param
name="wmode" value="transparent"></param><embed
src="http://www.youtube.com/v/DRmPhQLvhtY" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p><p><strong>Read More:</strong></p><p>Zoogmo</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/10/13/zoogmo-secure-peer-to-peer-backups/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Protect your important files against corruption</title><link>http://www.ghacks.net/2007/05/05/protect-your-important-files-against-corruption/</link> <comments>http://www.ghacks.net/2007/05/05/protect-your-important-files-against-corruption/#comments</comments> <pubDate>Sat, 05 May 2007 21:39:12 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[file corruption]]></category> <category><![CDATA[ice ecc]]></category> <category><![CDATA[par2]]></category> <category><![CDATA[protect files]]></category> <category><![CDATA[quickpar]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/05/05/protect-your-important-files-against-corruption/</guid> <description><![CDATA[Files do not last forever. Corruption can be caused by hard drive failures or unreadable compact disks for instance. The files might be partially readable but this does not help much if it is corrupted. There are some ways of preparing yourself against data loss. One obvious way is of course to make regular backups of your important files. But it could of course happen that backups get corrupted as well which most of the time happens in the worst moments possible. ]]></description> <content:encoded><![CDATA[<p>Files do not last forever. Corruption can be caused by hard drive failures or unreadable compact disks for instance. The files might be partially readable but this does not help much if it is corrupted. There are some ways of preparing yourself against data loss. One obvious way is of course to make regular backups of your important files. But it could of course happen that backups get corrupted as well which most of the time happens in the worst moments possible.</p><p>A software that is able to protect your important files against corruption is called <a
href="http://www.ice-graphics.com/ICEECC/IndexE.html" target="_blank">ICE ECC</a> which creates so called recovery files that can be used to recover files that are corrupted or partially damaged. They can&#8217;t recover files that are not there anymore of course but most of the time you have partial files that can be recovered. This is a like the <a
href="http://www.ghacks.net/2007/05/03/par2-files-explained/" target="_blank">Par2 file</a> system which I have written about earlier in this week.</p><p><span
id="more-1509"></span>ICE ECC offers some advantages over Par2 files. First it is possible to create recovery files for directories with no limitation on file size, amount of files and names. The recovery files themselves are compressed to make it easier to store them on your system. Last but not least some tests that have been published on the developers website claim that ICE ECC is a lot faster than Quickpar for instance. I do not think that this is such an important factor after all unless you create recovery files every day.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/05/05/protect-your-important-files-against-corruption/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Check Media Integrity</title><link>http://www.ghacks.net/2007/03/26/check-media-integrity/</link> <comments>http://www.ghacks.net/2007/03/26/check-media-integrity/#comments</comments> <pubDate>Mon, 26 Mar 2007 11:21:28 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[cd]]></category> <category><![CDATA[data loss]]></category> <category><![CDATA[dvd]]></category> <category><![CDATA[media integrity]]></category> <category><![CDATA[usb]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/03/26/check-media-integrity/</guid> <description><![CDATA[Nothing is more frustrating than to realize that some files of a backup are corrupted. This happens of course right at the time when you need the backup. One way to prevent this scenario from happening would be to use different locations for your backups, for example CDs, external hard drives and USB drives. Even though you store the backup in different places it is not guaranteed that the files on those devices are not corrupted. The probability that it will happen is simply reduced.]]></description> <content:encoded><![CDATA[<p>Nothing is more frustrating than to realize that some files of a backup are corrupted. This happens of course right at the time when you need the backup. One way to prevent this scenario from happening would be to use different locations for your backups, for example CDs, external hard drives and USB drives. Even though you store the backup in different places it is not guaranteed that the files on those devices are not corrupted. The probability that it will happen is simply reduced.</p><p>One way to check the backups for media integrity is to use a freeware called media checker. <a
href="http://www.noeld.com/programs.asp?cat=misc#mchecker" title="media checker" target="_blank">Media checker</a> works with all media on devices that are currently connected to the computer it is running. It can scan folders or complete drives and really  supports everything that you want to check for media integrity.</p><p><span
id="more-1346"></span> I contacted the author of Media Checker because it was not clear to me how media checker performed the check and decided whether a file was corrupted or not. The author answered me this way: &#8220;<em>Media Checker considers the data to be safe when all the files in all  subfolders of a selected media or folder can be read without any error from  the beginning to the end. The program list all the files and attempt to read  all of them byte by byte until the end.</em>&#8221;</p><p>A way of using media checker would be to test the backups from time to time and react immediately when one check fails. This works best if you have two or even more backups of the same data of course.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/03/26/check-media-integrity/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
