<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -59,12 +59,14 @@ function backupDBs($hostname, $username, $password, $prefix = '') {
 
   // Run backups on each database in the array
   foreach ($databases as $database) {
-    `mysqldump $MYSQL_OPTIONS --no-data --host=$hostname --user=$username --password='$password' $database | bzip2  &gt; $database.'_structure.sql.bz2'`;
-    `mysqldump $MYSQL_OPTIONS --host=$hostname --user=$username --password='$password' $database | bzip2 &gt; $database.'_content.sql.bz2'`;
-    $s3-&gt;putObjectFile(&quot;$database.'_structure.sql.bz2'&quot;, $BACKUP_BUCKET, s3Path($prefix,&quot;/&quot;.$database.&quot;_structure.sql.bz2&quot;));
-    $s3-&gt;putObjectFile(&quot;$database.'_content.sql.bz2'&quot;, $BACKUP_BUCKET, s3Path($prefix,&quot;/&quot;.$database.&quot;_content.sql.bz2&quot;));
-
-    `rm -rf $database.'_structure.sql.bz2' $database.'_content.sql.bz2'`;
+     $structure = $database . '_structure';
+     $content = $database . '_content';
+    `mysqldump $MYSQL_OPTIONS --no-data --host=$hostname --user=$username --password='$password' $database | bzip2  &gt; $structure.sql.bz2`;
+    `mysqldump $MYSQL_OPTIONS --host=$hostname --user=$username --password='$password' $database | bzip2 &gt; $content.sql.bz2`;
+    $s3-&gt;putObjectFile(&quot;$structure.sql.bz2&quot;, $BACKUP_BUCKET, s3Path($prefix, &quot;/&quot; . $database . &quot;_structure.sql.bz2&quot;));
+    $s3-&gt;putObjectFile(&quot;$content.sql.bz2&quot;, $BACKUP_BUCKET, s3Path($prefix, &quot;/&quot; . $database . &quot;_content.sql.bz2&quot;));
+
+    `rm -rf $structure.sql.bz2 $content.sql.bz2`;
   }
 
 }
@@ -93,7 +95,7 @@ function deleteBackups($bucket) {
   $set_date = strtotime('-2 weeks');
 
   // Only if it wasn't the first, or a Saturday.
-  if ((int)date('j', $set_date) === 1 || (string)date('l',$set_date) === &quot;Saturday&quot;) return true;
+  if ((int)date('j', $set_date) === 1 || (string)date('l', $set_date) === &quot;Saturday&quot;) return true;
 
   // Set s3 &quot;dir&quot; to delete
   $prefix = s3Path('', '', $set_date);</diff>
      <filename>app/daily.php</filename>
    </modified>
    <modified>
      <diff>@@ -112,7 +112,7 @@ function deleteBackups($bucket) {
   $set_date = strtotime('-2 days');
 
   // Only if it wasn't the first, or Saturday, or 6pm.
-  if ((int)date('j', $set_date) === 1 || (string)date('l',$set_date) === &quot;Saturday&quot; || (int)date('H',$set_date) === 18) return true;
+  if ((int)date('j', $set_date) === 1 || (string)date('l', $set_date) === &quot;Saturday&quot; || (int)date('H', $set_date) === 18) return true;
 
   // Set s3 &quot;dir&quot; to delete
   $prefix = s3Path('', '', $set_date);</diff>
      <filename>app/hourly.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f24c65571b8532cf80e711405351d3263c449e57</id>
    </parent>
  </parents>
  <author>
    <name>Douglas Jarquin</name>
    <email>douglasjarquin@gmail.com</email>
  </author>
  <url>http://github.com/douglasjarquin/backuphp/commit/960f6698eb45ac17dd83553c7980378a46d3642a</url>
  <id>960f6698eb45ac17dd83553c7980378a46d3642a</id>
  <committed-date>2009-06-09T12:29:04-07:00</committed-date>
  <authored-date>2009-06-09T12:29:04-07:00</authored-date>
  <message>Matching up the hourly and daily files.</message>
  <tree>b478c2b9ef9a7e0ec705e02c37f9fd48c3fcf88d</tree>
  <committer>
    <name>Douglas Jarquin</name>
    <email>douglasjarquin@gmail.com</email>
  </committer>
</commit>
