Skip to content

Commit 6b5d5ed

Browse files
Make .run()
1 parent 000a986 commit 6b5d5ed

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mongodb_consistent_backup/Main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ def stop_timer(self):
153153

154154
def rotate_backups(self):
155155
rotater = Rotate(self.config, self.state_root, self.state)
156-
rotater.rotate()
157-
rotater.symlink()
156+
rotater.run()
158157

159158
# TODO Rename class to be more exact as this assumes something went wrong
160159
# noinspection PyUnusedLocal

mongodb_consistent_backup/Rotate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ def symlink(self):
8787
except Exception, e:
8888
logging.error("Error creating backup symlinks: %s" % e)
8989
raise OperationError(e)
90+
91+
def run(self):
92+
self.rotate()
93+
self.symlink()

0 commit comments

Comments
 (0)