We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 000a986 commit 6b5d5edCopy full SHA for 6b5d5ed
mongodb_consistent_backup/Main.py
@@ -153,8 +153,7 @@ def stop_timer(self):
153
154
def rotate_backups(self):
155
rotater = Rotate(self.config, self.state_root, self.state)
156
- rotater.rotate()
157
- rotater.symlink()
+ rotater.run()
158
159
# TODO Rename class to be more exact as this assumes something went wrong
160
# noinspection PyUnusedLocal
mongodb_consistent_backup/Rotate.py
@@ -87,3 +87,7 @@ def symlink(self):
87
except Exception, e:
88
logging.error("Error creating backup symlinks: %s" % e)
89
raise OperationError(e)
90
+
91
+ def run(self):
92
+ self.rotate()
93
+ self.symlink()
0 commit comments