<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Backup your MySQL database to Rackspace Cloud Files with Duplicity</title>
	<atom:link href="http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backup-mysql-to-rackspace-cloud-files-with-duplicity</link>
	<description>the web, technology and miscellaneous rants</description>
	<lastBuildDate>Wed, 25 Jan 2012 17:52:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Avi Zloof</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-589</link>
		<dc:creator>Avi Zloof</dc:creator>
		<pubDate>Tue, 26 Jul 2011 13:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-589</guid>
		<description>I could not install Duplicity on my Centos because of all the dependencies issues so I wrote a python of my own

#!/usr/bin/env python
#Import the CloudFiles Python API ensure this is located in your lib directory for Python.
import cloudfiles
import time
import datetime
import commands

#DB info
MYSQL_DB=&#039;XX&#039;
MYSQL_USER=&#039;YY&#039;
MYSQL_PASS=&#039;****&#039;

#output info
OUTPUT_PATH=&#039;/a/&#039;
NOW = datetime.datetime.now().strftime(&quot;%Y-%m-%d_%H:%M:%S&quot;)
FILE=  MYSQL_DB+&#039;.&#039;+ NOW + &#039;.sql&#039;             

#Lets Connect to CloudFiles. and get the container
print &quot;Connecting to cloud files&quot;
conn = cloudfiles.get_connection(&#039;------&#039;,&#039;***********************************************&#039;)
cont = conn.get_container(&#039;mysql-backup&#039;)


#Dump DB
print &quot;Dumping DB file&quot; 
commands.getstatusoutput(&#039;mysqldump -u------  -p************** --databases ta &gt; &#039; + OUTPUT_PATH + FILE) 


#upload file
print &quot;Uploading file to cloud files&quot;
my_db_object  = cont.create_object(FILE)
my_db_object.load_from_filename(OUTPUT_PATH + FILE)

#deleting dump temporery file
#commands.getstatusoutput(&#039;rm -f &#039; + OUTPUT_PATH + FILE)

print &quot;Backup process done successfully&quot;</description>
		<content:encoded><![CDATA[<p>I could not install Duplicity on my Centos because of all the dependencies issues so I wrote a python of my own</p>
<p>#!/usr/bin/env python<br />
#Import the CloudFiles Python API ensure this is located in your lib directory for Python.<br />
import cloudfiles<br />
import time<br />
import datetime<br />
import commands</p>
<p>#DB info<br />
MYSQL_DB=&#8217;XX&#8217;<br />
MYSQL_USER=&#8217;YY&#8217;<br />
MYSQL_PASS=&#8217;****&#8217;</p>
<p>#output info<br />
OUTPUT_PATH=&#8217;/a/&#8217;<br />
NOW = datetime.datetime.now().strftime(&#8220;%Y-%m-%d_%H:%M:%S&#8221;)<br />
FILE=  MYSQL_DB+&#8217;.'+ NOW + &#8216;.sql&#8217;             </p>
<p>#Lets Connect to CloudFiles. and get the container<br />
print &#8220;Connecting to cloud files&#8221;<br />
conn = cloudfiles.get_connection(&#8216;&#8212;&#8212;&#8217;,'***********************************************&#8217;)<br />
cont = conn.get_container(&#8216;mysql-backup&#8217;)</p>
<p>#Dump DB<br />
print &#8220;Dumping DB file&#8221;<br />
commands.getstatusoutput(&#8216;mysqldump -u&#8212;&#8212;  -p************** &#8211;databases ta &gt; &#8216; + OUTPUT_PATH + FILE) </p>
<p>#upload file<br />
print &#8220;Uploading file to cloud files&#8221;<br />
my_db_object  = cont.create_object(FILE)<br />
my_db_object.load_from_filename(OUTPUT_PATH + FILE)</p>
<p>#deleting dump temporery file<br />
#commands.getstatusoutput(&#8216;rm -f &#8216; + OUTPUT_PATH + FILE)</p>
<p>print &#8220;Backup process done successfully&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tadas Sasnauskas</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-510</link>
		<dc:creator>Tadas Sasnauskas</dc:creator>
		<pubDate>Mon, 09 May 2011 12:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-510</guid>
		<description>Some notes..

1. In case you use Centos/RedHat -&gt; get a python-cloudfiles via yum.

yum install python-cloudfiles

2. Bit better solution for London datacentre users: instead of modifying the consts.py just add:

export CLOUDFILES_AUTHURL=&quot;https://lon.auth.api.rackspacecloud.com/v1.0&quot;

Below CLOUDFILES_APIKEY or similar.</description>
		<content:encoded><![CDATA[<p>Some notes..</p>
<p>1. In case you use Centos/RedHat -&gt; get a python-cloudfiles via yum.</p>
<p>yum install python-cloudfiles</p>
<p>2. Bit better solution for London datacentre users: instead of modifying the consts.py just add:</p>
<p>export CLOUDFILES_AUTHURL=&#8221;https://lon.auth.api.rackspacecloud.com/v1.0&#8243;</p>
<p>Below CLOUDFILES_APIKEY or similar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crounauer</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-489</link>
		<dc:creator>crounauer</dc:creator>
		<pubDate>Fri, 22 Apr 2011 10:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-489</guid>
		<description>If you are using the London datacentre, consts.py file needs to be edited. It is located at =&gt; /usr/lib/python2.5/site-packages/cloudfiles/consts.py

Change to this =&gt; default_authurl = &#039;https://lon.auth.api.rackspacecloud.com/v1.0&#039;</description>
		<content:encoded><![CDATA[<p>If you are using the London datacentre, consts.py file needs to be edited. It is located at =&gt; /usr/lib/python2.5/site-packages/cloudfiles/consts.py</p>
<p>Change to this =&gt; default_authurl = &#8216;<a href="https://lon.auth.api.rackspacecloud.com/v1.0" rel="nofollow">https://lon.auth.api.rackspacecloud.com/v1.0</a>&#8216;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crounauer</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-488</link>
		<dc:creator>crounauer</dc:creator>
		<pubDate>Fri, 22 Apr 2011 08:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-488</guid>
		<description>Hareem,

Duplicity splits the backups into 25MB chunks to make it manageable.</description>
		<content:encoded><![CDATA[<p>Hareem,</p>
<p>Duplicity splits the backups into 25MB chunks to make it manageable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crounauer</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-487</link>
		<dc:creator>crounauer</dc:creator>
		<pubDate>Fri, 22 Apr 2011 07:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-487</guid>
		<description>Update!!!

I found this tutorial =&gt; http://www.syamsul.net/2010/04/18/backing-up-your-debianubuntu-vps-to-rackspace-cloud-files/

Debian Lenny and Ubuntu &lt; 10.04 come with older versions of Duplicity. Additional repositories need to be added to install a newer version of duplicity.

Follow the instructions and all will be good!</description>
		<content:encoded><![CDATA[<p>Update!!!</p>
<p>I found this tutorial =&gt; <a href="http://www.syamsul.net/2010/04/18/backing-up-your-debianubuntu-vps-to-rackspace-cloud-files/" rel="nofollow">http://www.syamsul.net/2010/04/18/backing-up-your-debianubuntu-vps-to-rackspace-cloud-files/</a></p>
<p>Debian Lenny and Ubuntu &lt; 10.04 come with older versions of Duplicity. Additional repositories need to be added to install a newer version of duplicity.</p>
<p>Follow the instructions and all will be good!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crounauer</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-486</link>
		<dc:creator>crounauer</dc:creator>
		<pubDate>Fri, 22 Apr 2011 07:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-486</guid>
		<description>Great tutorial, thanks alot for sharing!!!!

I have almost got this working on Debian Lenny. I installed python 1.7.2 (latest version). instead of your snippet of code I had to use

wget http://github.com/rackspace/python-cloudfiles/tarball/1.7.2
tar -xzf 1.7.2
cd rackspace-python-cloudfiles-ed7ae1e
python setup.py install

The duplicity version for Debian is 0.4.11

It didn&#039;t work straight of, so I used &quot;bash -x /root/backup-mysql.sh&quot; to debug the shell script.

It thrown up this error: -

+ duplicity /backup/mysql cf+http://mysql-backup
Unknown scheme &#039;cf+http&#039;

I can&#039;t seem to find a work around for this. I believe the issue is with the version of Duplicity.

Any suggestions would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>Great tutorial, thanks alot for sharing!!!!</p>
<p>I have almost got this working on Debian Lenny. I installed python 1.7.2 (latest version). instead of your snippet of code I had to use</p>
<p>wget <a href="http://github.com/rackspace/python-cloudfiles/tarball/1.7.2" rel="nofollow">http://github.com/rackspace/python-cloudfiles/tarball/1.7.2</a><br />
tar -xzf 1.7.2<br />
cd rackspace-python-cloudfiles-ed7ae1e<br />
python setup.py install</p>
<p>The duplicity version for Debian is 0.4.11</p>
<p>It didn&#8217;t work straight of, so I used &#8220;bash -x /root/backup-mysql.sh&#8221; to debug the shell script.</p>
<p>It thrown up this error: -</p>
<p>+ duplicity /backup/mysql cf+<a href="http://mysql-backup" rel="nofollow">http://mysql-backup</a><br />
Unknown scheme &#8216;cf+http&#8217;</p>
<p>I can&#8217;t seem to find a work around for this. I believe the issue is with the version of Duplicity.</p>
<p>Any suggestions would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Coatsworth&#039;s Guide to Code, Homebrew and Other Do-It-Yourself Experiments :: SCALABLE BACKUP SOLUTIONS WITH RACKSPACE CLOUD FILES</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-302</link>
		<dc:creator>Mark Coatsworth&#039;s Guide to Code, Homebrew and Other Do-It-Yourself Experiments :: SCALABLE BACKUP SOLUTIONS WITH RACKSPACE CLOUD FILES</dc:creator>
		<pubDate>Tue, 30 Nov 2010 21:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-302</guid>
		<description>[...] method to push the dump file to Rackspace Cloud Files. There is already a good solution online for pushing files with Duplicity however I just want to push the raw files. Fortunately Rackspace Cloud Files provides APIs so [...]</description>
		<content:encoded><![CDATA[<p>[...] method to push the dump file to Rackspace Cloud Files. There is already a good solution online for pushing files with Duplicity however I just want to push the raw files. Fortunately Rackspace Cloud Files provides APIs so [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Backup to Rackspace Cloud Files with ease using duplicity &#124; Narek Khachatryan</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-140</link>
		<dc:creator>Backup to Rackspace Cloud Files with ease using duplicity &#124; Narek Khachatryan</dc:creator>
		<pubDate>Fri, 20 Aug 2010 08:46:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-140</guid>
		<description>[...] And that is it, my friends. I hope this is helpful. If you&#8217;re also interested in backing up your MySQL databases to Cloud Files, John T. Clark wrote a helpful guide on his blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] And that is it, my friends. I hope this is helpful. If you&#8217;re also interested in backing up your MySQL databases to Cloud Files, John T. Clark wrote a helpful guide on his blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hareem</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-137</link>
		<dc:creator>Hareem</dc:creator>
		<pubDate>Mon, 16 Aug 2010 05:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-137</guid>
		<description>Can you please advise. Why Duplicity splits everything into 25mb. Can i somehow control this feature.</description>
		<content:encoded><![CDATA[<p>Can you please advise. Why Duplicity splits everything into 25mb. Can i somehow control this feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Backing up MySQL Database to Rackspace Cloud Files on Centos 5.4</title>
		<link>http://blog.jtclark.ca/2010/02/backup-mysql-to-rackspace-cloud-files-with-duplicity/comment-page-1/#comment-116</link>
		<dc:creator>Backing up MySQL Database to Rackspace Cloud Files on Centos 5.4</dc:creator>
		<pubDate>Thu, 15 Jul 2010 05:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jtclark.ca/?p=3#comment-116</guid>
		<description>[...] up automatic backups to Rackspace Cloud files for a MySQL db running on Centos 5.4. I followed this guide here which is directed at Ubuntu 9.10 users, but worked just fine on Centos. Only change I really [...]</description>
		<content:encoded><![CDATA[<p>[...] up automatic backups to Rackspace Cloud files for a MySQL db running on Centos 5.4. I followed this guide here which is directed at Ubuntu 9.10 users, but worked just fine on Centos. Only change I really [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

