<?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: Using Amazon S3 to backup Media Temple’s Grid (gs)</title>
	<atom:link href="http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/</link>
	<description>I need a funny tagline</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:45:57 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: humbert</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-11146</link>
		<dc:creator>humbert</dc:creator>
		<pubDate>Thu, 27 Oct 2011 02:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-11146</guid>
		<description>&lt;p&gt;mmmmm cookies......!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>mmmmm cookies.…..!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: nosaukums</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-5532</link>
		<dc:creator>nosaukums</dc:creator>
		<pubDate>Mon, 09 May 2011 08:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-5532</guid>
		<description>&lt;p&gt;ouch, formatting screwed up.&lt;/p&gt;

&lt;p&gt;anyway.. just add &quot;$DATESTAMP.&quot; to all &quot;$dbname.sql.tar.gz&quot; 
and to first &quot;$website.tar.gz&quot;&lt;/p&gt;

&lt;p&gt;tadaa..&lt;/p&gt;

&lt;p&gt;and not tested yet, but I replaced the original &quot;rm $destdir/*.tar.gz&quot; (remove all  tar.gz files) with &quot;find /$destdir -type f -mtime +10 -exec rm {} &#092;;&quot; (delete all files older then 10 days.)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ouch, formatting screwed up.</p>

<p>anyway.. just add “$DATESTAMP.” to all “$dbname.sql.tar.gz” 
and to first “$website.tar.gz”</p>

<p>tadaa..</p>

<p>and not tested yet, but I replaced the original “rm $destdir/*.tar.gz” (remove all  tar.gz files) with “find /$destdir –type f –mtime +10 –exec rm {} \;” (delete all files older then 10 days.)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: nosaukums</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-5531</link>
		<dc:creator>nosaukums</dc:creator>
		<pubDate>Mon, 09 May 2011 08:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-5531</guid>
		<description>&lt;p&gt;Some ideas, 
I defined in the beginning of backup script:
&lt;code&gt;DATESTAMP=&lt;code&gt;date +%Y-%m-%d&lt;/code&gt;     &lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and modified to include it in all filenames i.e.:
&lt;code&gt;&lt;/p&gt;

&lt;p&gt;backup databases&lt;/p&gt;

&lt;p&gt;for dbname in &lt;code&gt;echo &#039;show databases;&#039; &#124; /usr/bin/mysql -h $dbhost -u$dbuser -p$dbpassword&lt;/code&gt;
do
if [ $dbname != &quot;Database&quot; ];
then 
echo &lt;code&gt;date&lt;/code&gt; &quot;: Backing up database $dbname...&quot; &gt;&gt; $destdir/backup.log
/usr/bin/mysqldump -h $dbhost --opt --skip-lock-tables -u$dbuser -p$dbpassword $dbname &gt; $destdir/$DATESTAMP.$dbname.sql
tar -czf $destdir/$DATESTAMP.$dbname.sql.tar.gz $destdir/$DATESTAMP.$dbname.sql
rm $destdir/$DATESTAMP.$dbname.sql
fi
done&lt;/p&gt;

&lt;p&gt;backup web content&lt;/p&gt;

&lt;p&gt;echo &lt;code&gt;date&lt;/code&gt; &quot;: Backing up web content...&quot; &gt;&gt; $destdir/$DATESTAMP.backup.log
for website in $websites
do
echo &lt;code&gt;date&lt;/code&gt; &quot;: Backing up website $website...&quot; &gt;&gt; $destdir/backup.log
tar -czf $destdir/$DATESTAMP.$website.tar.gz $domaindir/$website
done
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;also useful thing - exclude a specific directory (in my case cash, save some precious bandwidth ;) )
&lt;code&gt; tar -czf $destdir/$DATESTAMP.$website.tar.gz $domaindir/$website --exclude &#039;notthis/cache/*&#039; &lt;/code&gt;&lt;/p&gt;

&lt;p&gt;also couldnt figure out database locking issue so i added &quot;--skip-lock-tables&quot; to command. 
so far so good.&lt;/p&gt;

&lt;p&gt;thanks so much fur such a great tutorial.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Some ideas, 
I defined in the beginning of backup script:
<code>DATESTAMP=</code><code>date +%Y-%m-%d</code>     </p>

<p>and modified to include it in all filenames i.e.:
<code></code></p>

<p>backup databases</p>

<p>for dbname in <code>echo 'show databases;' | /usr/bin/mysql -h $dbhost -u$dbuser -p$dbpassword</code>
do
if [ $dbname != “Database” ];
then 
echo <code>date</code> “: Backing up database $dbname…” » $destdir/backup.log
/usr/bin/mysqldump –h $dbhost –opt –skip-lock-tables –u$dbuser –p$dbpassword $dbname &gt; $destdir/$DATESTAMP.$dbname.sql
tar –czf $destdir/$DATESTAMP.$dbname.sql.tar.gz $destdir/$DATESTAMP.$dbname.sql
rm $destdir/$DATESTAMP.$dbname.sql
fi
done</p>

<p>backup web content</p>

<p>echo <code>date</code> “: Backing up web content…” » $destdir/$DATESTAMP.backup.log
for website in $websites
do
echo <code>date</code> “: Backing up website $website…” » $destdir/backup.log
tar –czf $destdir/$DATESTAMP.$website.tar.gz $domaindir/$website
done
</p>

<p>also useful thing — exclude a specific directory (in my case cash, save some precious bandwidth <img src='http://www.christinawarren.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )
<code> tar -czf $destdir/$DATESTAMP.$website.tar.gz $domaindir/$website --exclude 'notthis/cache/*' </code></p>

<p>also couldnt figure out database locking issue so i added “–skip-lock-tables” to command. 
so far so good.</p>

<p>thanks so much fur such a great tutorial.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Barton</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2956</link>
		<dc:creator>Barton</dc:creator>
		<pubDate>Mon, 18 Oct 2010 18:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2956</guid>
		<description>&lt;p&gt;Okay, to all people with the &quot;Access denied&quot; ... &quot;using LOCK TABLES&quot; error:&lt;/p&gt;

&lt;p&gt;The backup is working, its just failing when it tries to backup the information_schema, which isn&#039;t required.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Okay, to all people with the “Access denied” … “using LOCK TABLES” error:</p>

<p>The backup is working, its just failing when it tries to backup the information_schema, which isn’t required.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Barton</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2955</link>
		<dc:creator>Barton</dc:creator>
		<pubDate>Mon, 18 Oct 2010 18:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2955</guid>
		<description>&lt;p&gt;I also get the error:&lt;/p&gt;

&lt;p&gt;Access denied for user &#039;dbxxxxx_s3sync&#039;@&#039;%&#039; to database &#039;yyyyy&#039; when using LOCK TABLES&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I also get the error:</p>

<p>Access denied for user ‘dbxxxxx_s3sync’@’%’ to database ‘yyyyy’ when using LOCK TABLES</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2932</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 08 Oct 2010 08:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2932</guid>
		<description>&lt;p&gt;Oh crap this is the wrong blog to ask that question, I should really not mess with this sort of thing this late at night. &gt;&lt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh crap this is the wrong blog to ask that question, I should really not mess with this sort of thing this late at night. &gt;&lt;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2931</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 08 Oct 2010 08:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2931</guid>
		<description>&lt;p&gt;Any idea on how to correct these errors in the zipline scripte?&lt;/p&gt;

&lt;p&gt;======================================================================&lt;/p&gt;

&lt;h1&gt;Database Backup Start Time Fri Oct 8 01:33:30 PDT 2010&lt;/h1&gt;

&lt;p&gt;Backing up databases from /home/86415/data/database_backups
tar: Removing leading `/&#039; from member names
tar: /home/86415/data/database_backups: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Complete&lt;/p&gt;

&lt;p&gt;======================================================================&lt;/p&gt;

&lt;h1&gt;Database Backup End Time Fri Oct 8 01:33:30 PDT 2010&lt;/h1&gt;

&lt;p&gt;======================================================================&lt;/p&gt;

&lt;h1&gt;Starting Transfer to Online Storage Backup Fri Oct 8 01:33:30 PDT 2010&lt;/h1&gt;

&lt;p&gt;Now transfering Backups to Amazon S3
S3 command failed:
list_bucket max-keys 200 prefix  delimiter /
With result 404 Not Found
S3 ERROR: #
./s3sync.rb:290:in &lt;code&gt;+&#039;: can&#039;t convert nil into Array (TypeError)
    from ./s3sync.rb:290:in&lt;/code&gt;s3TreeRecurse&#039;
    from ./s3sync.rb:346:in &lt;code&gt;main&#039;
    from ./thread_generator.rb:79:in&lt;/code&gt;call&#039;
    from ./thread_generator.rb:79:in &lt;code&gt;initialize&#039;
    from ./thread_generator.rb:76:in&lt;/code&gt;new&#039;
    from ./thread_generator.rb:76:in &lt;code&gt;initialize&#039;
    from ./s3sync.rb:267:in&lt;/code&gt;new&#039;
    from ./s3sync.rb:267:in `main&#039;
    from ./s3sync.rb:735&lt;/p&gt;

&lt;p&gt;Complete&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Any idea on how to correct these errors in the zipline scripte?</p>

<p>======================================================================</p>

<h1>Database Backup Start Time Fri Oct 8 01:33:30 PDT 2010</h1>

<p>Backing up databases from /home/86415/data/database_backups
tar: Removing leading ‘/’ from member names
tar: /home/86415/data/database_backups: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Complete</p>

<p>======================================================================</p>

<h1>Database Backup End Time Fri Oct 8 01:33:30 PDT 2010</h1>

<p>======================================================================</p>

<h1>Starting Transfer to Online Storage Backup Fri Oct 8 01:33:30 PDT 2010</h1>

<p>Now transfering Backups to Amazon S3
S3 command failed:
list_bucket max-keys 200 prefix  delimiter /
With result 404 Not Found
S3 ERROR: #
./s3sync.rb:290:in <code>+': can't convert nil into Array (TypeError)
    from ./s3sync.rb:290:in</code>s3TreeRecurse’
    from ./s3sync.rb:346:in <code>main'
    from ./thread_generator.rb:79:in</code>call’
    from ./thread_generator.rb:79:in <code>initialize'
    from ./thread_generator.rb:76:in</code>new’
    from ./thread_generator.rb:76:in <code>initialize'
    from ./s3sync.rb:267:in</code>new’
    from ./s3sync.rb:267:in ‘main’
    from ./s3sync.rb:735</p>

<p>Complete</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tanner Hobin</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2588</link>
		<dc:creator>Tanner Hobin</dc:creator>
		<pubDate>Fri, 16 Jul 2010 21:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2588</guid>
		<description>&lt;p&gt;Thank you, thank you, thank you!&lt;/p&gt;

&lt;p&gt;So I tried to make things a little easier on myself by making the &quot;list of website directories to backup&quot; &lt;code&gt;/domains&lt;/code&gt; and &quot;the directory where all website domain directories reside&quot; &lt;code&gt;/home/XXXXX/users/.home&lt;/code&gt; and the resulting .tar.gz file only had folders in it for home&gt;XXXXX&gt;users. No domains backed-up.&lt;/p&gt;

&lt;p&gt;Simply put, I was hoping to skip having to list all domains and the need to update the script every time I add/remove a domain. Any idea how I might be able to do that?&lt;/p&gt;

&lt;p&gt;Again, thank you.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you!</p>

<p>So I tried to make things a little easier on myself by making the “list of website directories to backup” <code>/domains</code> and “the directory where all website domain directories reside” <code>/home/XXXXX/users/.home</code> and the resulting .tar.gz file only had folders in it for home&gt;XXXXX&gt;users. No domains backed-up.</p>

<p>Simply put, I was hoping to skip having to list all domains and the need to update the script every time I add/remove a domain. Any idea how I might be able to do that?</p>

<p>Again, thank you.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: the Blog Butler</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2546</link>
		<dc:creator>the Blog Butler</dc:creator>
		<pubDate>Tue, 29 Jun 2010 22:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2546</guid>
		<description>&lt;p&gt;Thanks for writing this up Cristina, was a great help and got me off to a good start.  I have everything working fine when I run it from an SSH session but when the cron kicks the job off it will back up the site but will NOT transfer it to my S3 bucket.  It does it just fine when I run it manually but not from cron.&lt;/p&gt;

&lt;p&gt;Anyone have any clue on this?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for writing this up Cristina, was a great help and got me off to a good start.  I have everything working fine when I run it from an SSH session but when the cron kicks the job off it will back up the site but will NOT transfer it to my S3 bucket.  It does it just fine when I run it manually but not from cron.</p>

<p>Anyone have any clue on this?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Kreft</title>
		<link>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/#comment-2258</link>
		<dc:creator>Andre Kreft</dc:creator>
		<pubDate>Wed, 17 Mar 2010 08:41:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.christinawarren.com/?p=62#comment-2258</guid>
		<description>&lt;p&gt;Hi Christina, love the script and has been working for a while now. Lately I got some strange error&#039;s I cant seem to fix.&lt;/p&gt;

&lt;p&gt;Like: No such file or directory in my Cron Deamon emails and when I try to kick off my cron job through SSH I can&#039;t kick off ./server_backup.sh in my data folder. It keep saying: -bash: /backup_server.sh: No such file or directory&lt;/p&gt;

&lt;p&gt;Anything changed on MT side? or am I missing something. Hope you can help.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Christina, love the script and has been working for a while now. Lately I got some strange error’s I cant seem to fix.</p>

<p>Like: No such file or directory in my Cron Deamon emails and when I try to kick off my cron job through SSH I can’t kick off ./server_backup.sh in my data folder. It keep saying: –bash: /backup_server.sh: No such file or directory</p>

<p>Anything changed on MT side? or am I missing something. Hope you can help.</p>]]></content:encoded>
	</item>
</channel>
</rss>

