<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www.stress-free.co.nz"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>stressfree - backup</title>
 <link>https://www.stress-free.co.nz/tech/backup</link>
 <description></description>
 <language>en</language>
<item>
 <title>A handy backup script for remote hosting</title>
 <link>https://www.stress-free.co.nz/a_handy_backup_script_for_remote_hosting</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;img src=&quot;https://www.stress-free.co.nz/sites/default/files/u63/amazon_webservices.jpg&quot; width=&quot;170&quot; height=&quot;69&quot; /&gt;&lt;/div&gt;&lt;p&gt;I use &lt;a href=&quot;http://www.mediatemple.net/&quot;&gt;Media Temple&lt;/a&gt; for hosting of websites and Subversion repositories. The quality of service they provide is solid (especially considering the price) and the ability to SSH into the server and dig around at the command line is a huge plus. Unfortunately one of the areas they are lacking in is backups.&lt;/p&gt;&lt;p&gt;Media Temple provide a backup service but it is very limited in terms of capacity and granularity. Their backup function also does not provide any Subversion repository dump support which is crucial if you have ever experienced the pain of recovering from a Berkeleydb corruption.&lt;/p&gt;&lt;p&gt;Below is a script I use to backup my web domains, databases and Subversion repositories to compressed tar archives. Once these have been generated they are uploaded to the &lt;a href=&quot;http://www.amazon.com/gp/browse.html?node=16427261&quot;&gt;Amazon S3 storage cloud&lt;/a&gt; to create an off-site backup of off-site resources. The ability to backup directly from Media Temple to Amazon is great because it removes the middle-man (me) and maximises bandwidth usage. Pulling a tonne of data from the United States to New Zealand just to send it back again is certainly not an economical use of Internet resources.&lt;/p&gt;&lt;!--break--&gt;&lt;p&gt;Edit the variables at the top of the file to suit your hosting environment. Remember to set the file&#039;s execute permission bit otherwise it is not going to run (e.g. chmod a+x backup_server.sh).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;backup_server.sh &lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;codesnippet&quot;&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;# A list of website directories to back up&lt;br /&gt;websites=&quot;website1.com website2.com website3.com website4.com&quot;&lt;br /&gt;&lt;br /&gt;# A list of subversion repositories to back up&lt;br /&gt;svnrepos=&quot;repo1 repo2 repo3 repo4&quot;&lt;br /&gt;&lt;br /&gt;# The destination directory to backup the files to&lt;br /&gt;destdir=/var/backups&lt;br /&gt;&lt;br /&gt;# The directory where all website domain directories reside&lt;br /&gt;domaindir=/srv/www/vhosts&lt;br /&gt;&lt;br /&gt;# The directory where all subversion repositories reside&lt;br /&gt;svndir=/srv/svn&lt;br /&gt;&lt;br /&gt;# The MySQL database hostname&lt;br /&gt;dbhost=example.mysqldatabase.com&lt;br /&gt;&lt;br /&gt;# The MySQL database username - requires read access to databases&lt;br /&gt;dbuser=exampleuser&lt;br /&gt;&lt;br /&gt;# The MySQL database password&lt;br /&gt;dbpassword=examplepassword&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo `date` &quot;: Beginning backup process...&quot; &amp;gt; $destdir/backup.log&lt;br /&gt;&lt;br /&gt;# remove old backups&lt;br /&gt;rm $destdir/*.tar.gz&lt;br /&gt;&lt;br /&gt;# backup databases&lt;br /&gt;for dbname in `echo &#039;show databases;&#039; | /usr/bin/mysql -h $dbhost -u$dbuser -p$dbpassword`&lt;br /&gt;do&lt;br /&gt;        if [ $dbname != &quot;Database&quot; ];&lt;br /&gt;        then&lt;br /&gt;                echo `date` &quot;: Backing up database $dbname...&quot; &amp;gt;&amp;gt; $destdir/backup.log&lt;br /&gt;                /usr/bin/mysqldump --opt -h $dbhost -u$dbuser -p$dbpassword $dbname &amp;gt; $destdir/$dbname.sql&lt;br /&gt;                tar -czf $destdir/$dbname.sql.tar.gz $destdir/$dbname.sql&lt;br /&gt;                rm $destdir/$dbname.sql&lt;br /&gt;        fi&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;# backup web content&lt;br /&gt;echo `date` &quot;: Backing up web content...&quot; &amp;gt;&amp;gt; $destdir/backup.log&lt;br /&gt;for website in $websites&lt;br /&gt;do&lt;br /&gt;        echo `date` &quot;: Backing up website $website...&quot; &amp;gt;&amp;gt; $destdir/backup.log&lt;br /&gt;        tar -czf $destdir/$website.tar.gz $domaindir/$website&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;# backup subversion repositories&lt;br /&gt;echo `date` &quot;: Backing up subversion data...&quot; &amp;gt;&amp;gt; $destdir/backup.log&lt;br /&gt;for svnrepo in $svnrepos&lt;br /&gt;do&lt;br /&gt;        echo `date` &quot;: Backing up svn repo $svnrepo...&quot; &amp;gt;&amp;gt; $destdir/backup.log&lt;br /&gt;        svnadmin dump -q $svndir/$svnrepo &amp;gt; $destdir/$svnrepo.svn&lt;br /&gt;        tar -czf $destdir/$svnrepo.svn.tar.gz $destdir/$svnrepo.svn&lt;br /&gt;        rm $destdir/$svnrepo.svn&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;echo `date` &quot;: Backup process complete.&quot; &amp;gt;&amp;gt; $destdir/backup.log&lt;/p&gt;&lt;p&gt;Once the backup process is complete the archives can be uploaded to Amazon&#039;s S3 via the s3backup tool. Follow the instructions as described in Paul Stamatiou&#039;s excellent how-to post entitled &#039;&lt;a href=&quot;http://paulstamatiou.com/2007/07/29/how-to-bulletproof-server-backups-with-amazon-s3&quot;&gt;Bulletproof Server Backups with Amazon S3&lt;/a&gt;&#039;.&lt;/p&gt;&lt;p&gt;Below is a small script I use to run s3backup which uploads the previously created archives.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;s3_backup.sh&lt;/strong&gt; (again remember to set execute permissions on the file) &lt;/p&gt;&lt;p class=&quot;codesnippet&quot;&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;# The directory where s3sync is installed&lt;br /&gt;s3syncdir=/usr/local/s3sync&lt;br /&gt;&lt;br /&gt;# The directory where the backup archives are stored&lt;br /&gt;backupdir=/var/backups&lt;br /&gt;&lt;br /&gt;# The S3 bucket a.k.a. directory to upload the backups into&lt;br /&gt;s3bucket=backups&lt;br /&gt;&lt;br /&gt;cd $s3syncdir&lt;br /&gt;./s3sync.rb $backupdir/ $s3bucket:&lt;/p&gt;&lt;p&gt;Once both scripts have been tested they can be added as cron jobs and left to themselves. If you wanted with a bit of tweaking to the s3_backup.sh script (or cron) you could create multiple remote backup versions on S3 just in case an archive gets corrupted or there is a need to restore something overridden in your previous backup. &lt;/p&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/backup&quot;&gt;backup&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tutorials&quot;&gt;software tutorials&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Wed, 05 Sep 2007 11:22:12 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">468 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Large file support with an Unslung NSLU2</title>
 <link>https://www.stress-free.co.nz/large_file_support_with_an_unslung_nslu2</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;I have written previously on how &lt;a href=&quot;/node/269/2/&quot;&gt;cool the little NSLU2 is&lt;/a&gt; as a customisable NAS device. I have set mine up as a little backup device, it silently backs up my server files (using rsync), creates tar files from all the files and then presents these archives to Retrospect on my Mac for backing up to external media and taking off-site. Unfortunately the default &#039;ls&#039; and &#039;tar&#039; programs that come with the Unslung distribution do not support large file sizes or long filenames to fix this problem download the far more up-to-date versions using ipkg:&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;# Whilst logged in as root (or use sudo)    &lt;br /&gt;ipkg install coreutils    &lt;br /&gt;ipkg install tar    &lt;br /&gt;mv /bin/ls /bin/ls.old    &lt;br /&gt;mv /bin/tar /bin/tar.old    &lt;br /&gt;ln -s /opt/bin/ls /bin/ls    &lt;br /&gt;ln -s /opt/bin/tar /bin/tar &lt;/p&gt;  &lt;p&gt;Running these commands will replace the outdated programs with their newer counterparts which results in far smoother backups.&lt;/p&gt;   &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/server&quot;&gt;server&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/nas&quot;&gt;nas&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/nslu2&quot;&gt;nslu2&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/backup&quot;&gt;backup&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Mon, 14 Aug 2006 04:03:57 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">290 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Backups, the bane of computers</title>
 <link>https://www.stress-free.co.nz/backups_the_bane_of_computers</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
      &lt;p&gt;After having my fair share of backup dilemmas and stress &lt;a href=&quot;http://www.tbray.org/ongoing/When/200x/2006/01/31/Data-Protection&quot;&gt;Tim Bray&#039;s post&lt;/a&gt; at least gives hope that I am not alone. It is strange that there really are not that many decent backup products considering how simple the task really is.&lt;/p&gt;  &lt;p&gt;The most effective backup system I have used is the one I wrote myself for Linux servers. It is simple, flexible, non-proprietary and most importantly it seems to work without hassle. It comprises of a bash script and some configuration files. &lt;/p&gt;  &lt;p&gt;The bash script compresses gzipped tar archives onto a removable hard drive. In most cases I use two removeable drives for redundancy. Typically all user data is stored in the /home directory with a few special directories: media (music/movies), temp and data shared amoungst the users. The /home/data directory holds most of the office data and as such the backup script breaks archiving of this data into smaller pieces in order to facilitate easier restoration.    &lt;br /&gt;The backup script stores multiple backups on disk to ensure that a corrupted backup does not lead to significant loss of data. The backup usually runs every night with the removable disks swapped during the day. On completion (or failure) of a backup an automated email is sent out to interested parties.    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Below is the bash script (typically /usr/local/sbin/backup_script):&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;#!/bin/bash    &lt;br /&gt;# configure variables for script    &lt;br /&gt;servername=`awk &#039;/^servername/{print $2}&#039; $1`    &lt;br /&gt;serveremail=`awk &#039;/^serveremail/{print $2}&#039; $1`    &lt;br /&gt;destdir=`awk &#039;/^backupdir/{print $2}&#039; $1`    &lt;br /&gt;movedir=`awk &#039;/^movedir/{print $2}&#039; $1`    &lt;br /&gt;lockfile=`awk &#039;/^lockfile/{print $2}&#039; $1`    &lt;br /&gt;endofweek=`awk &#039;/^endofweek/{print $2}&#039; $1`    &lt;br /&gt;eowflag=`awk &#039;/^eowflag/{print $2}&#039; $1`    &lt;br /&gt;device=`awk &#039;/^device/{print $2}&#039; $1`    &lt;br /&gt;volume=`awk &#039;/^volume/{print $2}&#039; $1`    &lt;br /&gt;email=`awk &#039;/^email/{print $2}&#039; $1`    &lt;br /&gt;dbhost=`awk &#039;/^dbhost/{print $2}&#039; $1`    &lt;br /&gt;dbuser=`awk &#039;/^dbuser/{print $2}&#039; $1`    &lt;br /&gt;dbpassword=`awk &#039;/^dbpassword/{print $2}&#039; $1`    &lt;br /&gt;processexists=`awk &#039;/^processexists/{print $2}&#039; $1`    &lt;br /&gt;mountfailure=`awk &#039;/^mountfailure/{print $2}&#039; $1`&lt;br /&gt; &lt;br /&gt;if [ -e $lockfile ]    &lt;br /&gt;then    &lt;br /&gt;        echo &quot;Backup task already operating, please try again later&quot;    &lt;br /&gt;    mail -s &quot;Backup of $servername Failed: Process already running&quot; -r $serveremail $email &amp;lt; $processexists    &lt;br /&gt;    exit    &lt;br /&gt;else    &lt;br /&gt;# See if device is plugged in and available    &lt;br /&gt;    umount $device    &lt;br /&gt;    mount $device $mount    &lt;br /&gt;    if [[ $? -eq 0 ]] ;    &lt;br /&gt;    then    &lt;br /&gt;        echo &quot;Media available and ready to go...&quot;    &lt;br /&gt;    else    &lt;br /&gt;    echo &quot;Backup task could not continue, media unmountable&quot;    &lt;br /&gt;    mail -s &quot;Backup of $servername Failed: Media Unavailable&quot; -r $serveremail $email &amp;lt; $mountfailure    &lt;br /&gt;        exit    &lt;br /&gt;    fi    &lt;br /&gt; &lt;br /&gt;# Perform backup    &lt;br /&gt;    /bin/touch $lockfile    &lt;br /&gt;    echo &quot;Performing data backup&quot;    &lt;br /&gt;    # Change directory to a safe place just in case anything bad happens    &lt;br /&gt;    cd /tmp    &lt;br /&gt;    if [ endofweek != &quot;true&quot; ]    &lt;br /&gt;    then    &lt;br /&gt;        # Delete end of week flag if it exists    &lt;br /&gt;        /bin/rm $eowflag    &lt;br /&gt;        /bin/rm -fr $volume$movedir/*    &lt;br /&gt;        /bin/mv $volume$destdir/* $volume$movedir/       &lt;br /&gt;        echo &quot;Beginning daily backup: &quot; `date` &amp;gt; $volume$destdir/backup.log       &lt;br /&gt;    else    &lt;br /&gt;        # Does the end of week flag exist? If it does do not move files    &lt;br /&gt;        if [ -e $eowflag ]    &lt;br /&gt;        then    &lt;br /&gt;            # Flag exists - weekly backup already made, just delete existing files    &lt;br /&gt;                        /bin/rm -fr $volume$destdir/*    &lt;br /&gt;                        echo &quot;Beginning daily backup: &quot; `date` &amp;gt; $volume$destdir/backup.log    &lt;br /&gt;        else    &lt;br /&gt;            # Move files    &lt;br /&gt;            /bin/rm -fr $volume$movedir/*    &lt;br /&gt;            /bin/mv $volume$destdir/* $volume$movedir/    &lt;br /&gt;            /bin/touch $eowflag    &lt;br /&gt;            echo &quot;Beginning weekly backup: &quot; `date` &amp;gt; $volume$destdir/backup.log    &lt;br /&gt;        fi    &lt;br /&gt;    fi    &lt;br /&gt;    # note time    &lt;br /&gt;    echo &quot;Backup started: &quot; `date` &amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    echo &quot;-------------------------------------------------------&quot; &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;  &lt;br /&gt;    # backup project data    &lt;br /&gt;    cd $volume$destdir    &lt;br /&gt;    mkdir data    &lt;br /&gt;    # Change to data directory for file listing    &lt;br /&gt;    cd /home/data    &lt;br /&gt;    for datadir in *    &lt;br /&gt;    do    &lt;br /&gt;            echo `date` &quot;: Backing up data folder $datadir...&quot; &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;            tar czf &quot;$volume$destdir/data/$datadir.tar.gz&quot; &quot;$datadir&quot;    &lt;br /&gt;    done    &lt;br /&gt;    # Jump back into backup directory    &lt;br /&gt;    cd $volume$destdir    &lt;br /&gt; &lt;br /&gt;    # backup home directories    &lt;br /&gt;    for homedir in `ls /home`    &lt;br /&gt;    do    &lt;br /&gt;        if [ $homedir != &quot;.cpan&quot; ]    &lt;br /&gt;        then    &lt;br /&gt;               if [ $homedir != &quot;backup&quot; ]    &lt;br /&gt;               then    &lt;br /&gt;                   if [ $homedir != &quot;temp&quot; ]    &lt;br /&gt;                   then    &lt;br /&gt;                       if [ $homedir != &quot;media&quot; ]    &lt;br /&gt;                       then    &lt;br /&gt;                           if [ $homedir != &quot;data&quot; ]    &lt;br /&gt;                           then    &lt;br /&gt;                             echo `date` &quot;: Backing up home directory of $homedir...&quot; &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;                             tar zcf $volume$destdir/home_$homedir.tar.gz /home/$homedir    &lt;br /&gt;                        fi    &lt;br /&gt;                    fi    &lt;br /&gt;                fi    &lt;br /&gt;            fi    &lt;br /&gt;        fi    &lt;br /&gt;    done    &lt;br /&gt; &lt;br /&gt;    # Backup Apache Files    &lt;br /&gt;    echo `date` &quot;: Backing up Web Server Files&quot;  &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    tar zcf $volume$destdir/server.tar.gz /srv    &lt;br /&gt; &lt;br /&gt;    # backup databases    &lt;br /&gt;    for dbname in `echo &#039;show databases;&#039; | /usr/bin/mysql -h $dbhost -u$dbuser -p$dbpassword`    &lt;br /&gt;    do    &lt;br /&gt;        if [ $dbname != &quot;Database&quot; ];    &lt;br /&gt;        then    &lt;br /&gt;             echo `date` &quot;: Backing up database $dbname...&quot; &amp;gt;&amp;gt; $destdir/backup.log    &lt;br /&gt;             /usr/bin/mysqldump --opt -h $dbhost -u$dbuser -p$dbpassword $dbname &amp;gt; $destdir/$dbname.sql    &lt;br /&gt;        fi    &lt;br /&gt;    done    &lt;br /&gt;    # Now compress backed up databases into archive    &lt;br /&gt;    tar cf - $destdir/*.sql | gzip &amp;gt; $destdir/db_backup.tar.gz    &lt;br /&gt;    # Remove SQL    &lt;br /&gt;    rm $destdir/*.sql    &lt;br /&gt;  &lt;br /&gt;    # Backup LDAP Data    &lt;br /&gt;    echo `date` &quot;: Backing up LDAP data&quot;  &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    ldapsearch -x &amp;gt; $volume$destdir/ldap.ldif    &lt;br /&gt; &lt;br /&gt;# Backup Configuration Files    &lt;br /&gt;    echo `date` &quot;: Backing up configuration files&quot; &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    tar zcf $volume$destdir/server_configs.tar.gz /etc    &lt;br /&gt; &lt;br /&gt;    # Backup completed    &lt;br /&gt;    echo &quot;-------------------------------------------------------&quot; &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    echo &quot;Backup completed: &quot; `date` &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    echo &quot;Backup size: &quot; `du -smh $volume$destdir` &amp;gt;&amp;gt; $volume$destdir/backup.log       &lt;br /&gt;        echo &quot;-------------------------------------------------------&quot; &amp;gt;&amp;gt; $volume$destdir/backup.log    &lt;br /&gt;    echo df $device -h       &lt;br /&gt;    echo &quot;Backup process completed&quot;    &lt;br /&gt;    rm $lockfile       &lt;br /&gt;    mail -s &quot;Backup of $servername Completed&quot; -r $serveremail $email &amp;lt; $volume$destdir/backup.log    &lt;br /&gt;fi    &lt;br /&gt;umount $device    &lt;br /&gt;exit    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt; The backup script pulls data from a few configuration files, the main file is normally named backup-daily.conf and stored in /etc/backup    &lt;br /&gt;&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;servername SomeServer    &lt;br /&gt;serveremail email@someserver.com    &lt;br /&gt;backupdir /backupA    &lt;br /&gt;movedir /backupB    &lt;br /&gt;lockfile /var/run/backup_script.pid    &lt;br /&gt;endofweek false    &lt;br /&gt;eowflag /var/run/backup_eow    &lt;br /&gt;device /dev/sda1    &lt;br /&gt;volume /media/backup_daily    &lt;br /&gt;dbhost localhost   &lt;br /&gt;dbuser user   &lt;br /&gt;dbpassword password    &lt;br /&gt;email notifyme@someplace.com    &lt;br /&gt;processexists /etc/backup/processexists    &lt;br /&gt;mountfailure /etc/backup/mountfailure&lt;/p&gt;  &lt;p&gt;Here is a definition of the configuration options:&lt;/p&gt;  &lt;p&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;servername&lt;/span&gt; - name of server    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;serveremail&lt;/span&gt; - From email address for server emails    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;backupdir&lt;/span&gt; - directory on backup drive to backup to    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;movedir&lt;/span&gt; - directory on backup drive to move previous backup to    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;lockfile&lt;/span&gt; - name of lock file to create whilst backup is taking place    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;endofweek&lt;/span&gt; - true/false whether this is an end of week backup    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;eowflag&lt;/span&gt; - name of flag to set if this is an end of week backup    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;device&lt;/span&gt; - removable media device address    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;volume&lt;/span&gt; - location removable media is mounted to    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;email&lt;/span&gt; - addresses to send backup notification email to    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;processexists&lt;/span&gt; - message to email if the process is still running and a new process cannot begin    &lt;br /&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;mountfailure&lt;/span&gt; - message to send if there was a problem mounting the backup drive    &lt;br /&gt;&lt;br /&gt; The backup can then be run using the following command:&lt;/p&gt;  &lt;p style=&quot;font-weight: bold&quot;&gt;/usr/local/sbin/backup_script /etc/backup/backup-daily.conf&lt;/p&gt;  &lt;p&gt;Multiple backup configurations can be created and executed just by substituing /etc/backup/backup-daily.conf with the location of the desired configuration file.    &lt;br /&gt;&lt;/p&gt;   &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/backup&quot;&gt;backup&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tutorials&quot;&gt;software tutorials&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Thu, 02 Feb 2006 01:10:57 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">232 at https://www.stress-free.co.nz</guid>
</item>
</channel>
</rss>
