Changeset - 22b2234e51cd
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 16 years ago 2010-03-08 10:25:13
marcin@python-blog.com
Added removing of files from data
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pylons_app/lib/backup_manager.py
Show inline comments
 
@@ -66,12 +66,18 @@ class BackupManager(object):
 
               'root@192.168.2.102:/backups/mercurial' % params]
 

	
 
        subprocess.Popen(cmd)
 
        logging.info('Transfered file %s to %s', self.backup_file_name, cmd[4])
 

	
 

	
 
    def rm_file(self):
 
        os.remove(self.backup_file_path)
 
    
 

	
 

	
 
if __name__ == "__main__":
 
    bm = BackupManager()
 
    bm.backup_repos()
 
    bm.transfer_files()
 
    bm.rm_file()
 

	
 

	
0 comments (0 inline, 0 general)