<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -0,0 +1 @@
+timeyak waits for noman.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 from __future__ import with_statement
 from optparse import OptionParser
+import commands
 import time
 
 def parse_setup():
@@ -16,7 +17,8 @@ def parse_setup():
 
 class YakDump:
 	
-	def __init__(self, user='timeyak', hostfile='hosts.yak', archiver_options='-cf', archiver='tar', archiver_ext='.tar', compress_app='bzip2', compress_ext='.bz'):
+	def __init__(self, user='timeyak', hostfile='hosts.yak', dest_path='/home/timeyak/backups/', archiver_options='-cf', archiver='tar', archiver_ext='.tar', compress_app='bzip2', compress_ext='.bz'):
+		print('timeyak waits for noman')
 		current_time = time.localtime()
 		self.time_str = str(current_time[0]) + str(current_time[1]) + str(current_time[2])
 		self.compress_app = compress_app
@@ -27,6 +29,7 @@ class YakDump:
 		self.hostfile = hostfile
 		self.user = user
 		self.files = []
+		self.dest_path = dest_path
 
 	def get_hosts(self):
 		with open(self.hostfile) as f:
@@ -36,31 +39,32 @@ class YakDump:
 	def dump_database(self, database):
 		filename = database + self.time_str + '.sql'
 		self.files.append(filename)
-		command = 'mysqldump ' + database + ' &gt; ' + filename
-		print(command)
+		c = 'mysqldump -u' + self.user + ' ' + database + ' &gt; ' + filename
+		ret = commands.getstatusoutput(c)
+		print(ret)
 
 	def dump_svn(self, repo):
 		filename = repo + self.time_str + self.compress_ext
 		self.files.append(filename)
-		command = 'svnadmin dump ' + repo + ' | ' + self.compress_app + ' &gt; ' + filename
-		print(command)
+		c = 'svnadmin dump ' + repo + ' | ' + self.compress_app + ' &gt; ' + filename
+		commands.getstatusoutput(c)
 
 	def dump_files(self, path, archived_name):
 		filename = archived_name + self.time_str + self.archiver_ext
 		self.files.append(filename)
-		command = self.archiver + ' ' + self.archiver_options + ' ' + filename + ' ' + path
-		print(command)
-		zip_command = self.compress_app + ' ' + archived_name + self.time_str + self.archiver_ext
-		print(zip_command)
+		c = self.archiver + ' ' + self.archiver_options + ' ' + filename + ' ' + path
+		zip_c = self.compress_app + ' ' + archived_name + self.time_str + self.archiver_ext
+		commands.getstatusoutput(c)
+		commands.getstatusoutput(zip_c)
 
 	def copy_files(self):
 		for file in self.files:
 			for host in self.get_hosts():
-				command = 'scp ' + file + ' ' + self.user + '@' + host
-				print(command)
+				c = 'scp ' + file + ' ' + self.user + '@' + host + ':' + self.dest_path
+				ret = commands.getstatusoutput(c.replace(&quot;\n&quot;, &quot;&quot;))
 	
 yakdump = YakDump()
-yakdump.dump_database('skyraise')
-yakdump.dump_svn('skyraise')
-yakdump.dump_files('/home/tridian/data/', 'samba_data')
+yakdump.dump_database('blah')
+#yakdump.dump_svn('blah')
+#yakdump.dump_files('/home/timeyak/data/', 'data')
 yakdump.copy_files()</diff>
      <filename>timeyak.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f1034466761d35137d5d18335f8eae9ad7d40daf</id>
    </parent>
  </parents>
  <author>
    <name>Michael Matuzak</name>
    <email>michael@lambdaphant.com</email>
  </author>
  <url>http://github.com/emkay/timeyak/commit/bd17dff8aa97dc755e9c191bbb9ad394d6610ed9</url>
  <id>bd17dff8aa97dc755e9c191bbb9ad394d6610ed9</id>
  <committed-date>2009-05-07T13:34:30-07:00</committed-date>
  <authored-date>2009-05-07T13:34:30-07:00</authored-date>
  <message>getting rid of the debug print statements. initial testing is working</message>
  <tree>fb31636964109fab7c0534134fdcde925f0a5553</tree>
  <committer>
    <name>Michael Matuzak</name>
    <email>michael@lambdaphant.com</email>
  </committer>
</commit>
