<?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>Crafting software&#187; backup-manager</title>
	<atom:link href="http://davidlaing.com/tag/backup-manager/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidlaing.com</link>
	<description>David Laing&#039;s thoughts on software development</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:02:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Backup Ubuntu 8.04LTS to rsync.net using backup-manager (at linode.com)</title>
		<link>http://davidlaing.com/2008/12/26/backup-ubuntu-804lts-to-amazon-s3-using-backup-manager-at-linodecom/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backup-ubuntu-804lts-to-amazon-s3-using-backup-manager-at-linodecom</link>
		<comments>http://davidlaing.com/2008/12/26/backup-ubuntu-804lts-to-amazon-s3-using-backup-manager-at-linodecom/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 22:09:21 +0000</pubDate>
		<dc:creator>mrdavidlaing</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup-manager]]></category>
		<category><![CDATA[rsync.net]]></category>

		<guid isPermaLink="false">http://davidlaing.com/?p=116</guid>
		<description><![CDATA[I&#8217;m setting up a new linode360 VPS, based of the Ubuntu 8.04LTS image. For backups, I want to do weekly backups and daily incrementals of the data files, and sync these off to an external backup location. Broadly, there are two parts to the backup, creating the backed up files, and then copying them offsite. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m setting up a new linode360 VPS, based of the Ubuntu 8.04LTS image.</p>
<p>For backups, I want to do weekly backups and daily incrementals of the data files, and sync these off to an external backup location.</p>
<p>Broadly, there are two parts to the backup, creating the backed up files, and then copying them offsite.</p>
<p><strong>Creating the backups</strong></p>
<p>I&#8217;m using backup-manager 0.7.6-debian1, which handles backing up sets of files and MySQL databases to tar.gz files.</p>
<pre>sudo aptitude install backup-manager
sudo /usr/sbin/backup-manager --version</pre>
<p>The comments in the config file make editing it quite straight forward.</p>
<pre>sudo vi /etc/backup-manager.conf</pre>
<p>One minor points:</p>
<ul>
<li>Separate multiple backup methods with a space, eg:
<pre>export BM_ARCHIVE_METHOD="tarball-incremental mysql"</pre>
</li>
</ul>
<p>To test:</p>
<pre>sudo /usr/sbin/backup-manager --verbose</pre>
<p>The output folder you specified (/var/archives) should now contain some .tar.gz versions of your data.  Hurrah!</p>
<p><strong>Getting the files offsite</strong></p>
<p>Originally I intended to use Amazon&#8217;s S3 as a backup store, following <a href="http://www.zepan.org/2007/02/10/installing-backup-manager-with-the-s3-upload-method-on-debianubuntu/">Michael Zehrer&#8217;s instructions on how to rsync with S3</a>.  However, I couldn&#8217;t get this to work reliably; so I opted instead for <a href="http://rsync.net">rsync.net</a> which offers standard scp, ftp, WebDav and sshfs access to their geographic backup locations.</p>
<p>Backup-manager can rsync over ssh, which is a quick and efficient way to sync changes over to the remote host..</p>
<p>The first step is get your <a href="http://rsync.net">rsync.net</a> account setup; and <a href="http://rsync.net/resources/howto/ssh_keys.txt">set up your ssh so you can access without typing in a password</a></p>
<p>Then, set the BM_UPLOAD_METHOD to rsync, and configure both the scp <em>and </em>the rsync settings in /etc/backup-manager.conf (pay attention not to prefix remote folders with / ).</p>
<p>Test with:</p>
<pre>sudo /usr/sbin/backup-manager --verbose</pre>
<p>Once its all working, set up a cron job to call backup-manager daily.</p>
<pre>crontab -e</pre>
<p>I run backup-manager once per day in the wee hours, and log output to /root/crontab/daily_backup-manager.logs</p>
<pre>  0 3   *   *   *    /usr/sbin/backup-manager -v &gt; /root/cronlogs/daily_backup-manager.log</pre>
<p>Viola!</p>
]]></content:encoded>
			<wfw:commentRss>http://davidlaing.com/2008/12/26/backup-ubuntu-804lts-to-amazon-s3-using-backup-manager-at-linodecom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

