Show More
@@ -69,9 +69,15 b' class BackupManager(object):' | |||||
69 | logging.info('Transfered file %s to %s', self.backup_file_name, cmd[4]) |
|
69 | logging.info('Transfered file %s to %s', self.backup_file_name, cmd[4]) | |
70 |
|
70 | |||
71 |
|
71 | |||
|
72 | def rm_file(self): | |||
|
73 | os.remove(self.backup_file_path) | |||
|
74 | ||||
|
75 | ||||
|
76 | ||||
72 | if __name__ == "__main__": |
|
77 | if __name__ == "__main__": | |
73 | bm = BackupManager() |
|
78 | bm = BackupManager() | |
74 | bm.backup_repos() |
|
79 | bm.backup_repos() | |
75 | bm.transfer_files() |
|
80 | bm.transfer_files() | |
|
81 | bm.rm_file() | |||
76 |
|
82 | |||
77 |
|
83 |
General Comments 0
You need to be logged in to leave comments.
Login now