Changeset - 468e226bbaa5
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 16 years ago 2010-03-01 12:51:14

removed uunneded thing.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pylons_app/lib/backup_manager.py
Show inline comments
 
@@ -38,25 +38,25 @@ class BackupManager(object):
 
        if repos_path[-1] in ['*', '**']:
 
            repos_path = repos_path[:-1]
 
        if repos_path[0] != '/':
 
            repos_path[0] = '/'
 
        self.repos_path = os.path.join(*repos_path)
 

	
 
    def backup_repos(self):
 
        today = datetime.datetime.now().weekday() + 1
 
        self.backup_file_name = "mercurial_repos.%s.tar.gz" % today
 
        bckp_file = os.path.join(self.backup_file_path, self.backup_file_name)
 
        tar = tarfile.open(bckp_file, "w:gz")
 

	
 
        for dir in os.listdir(self.repos_path)[:2]:
 
        for dir in os.listdir(self.repos_path):
 
            logging.info('backing up %s', dir)
 
            tar.add(os.path.join(self.repos_path, dir), dir)
 
        tar.close()
 
        logging.info('finished backup of mercurial repositories')
 

	
 

	
 

	
 
    def transfer_files(self):
 
        params = {
 
                  'id_rsa_key': self.id_rsa_path,
 
                  'backup_file_path':self.backup_file_path,
 
                  'backup_file_name':self.backup_file_name,
0 comments (0 inline, 0 general)