Skip to content

Commit 70761f2

Browse files
committed
corrected issue where archive would fail if from an imported server (create awd on attempt)
1 parent 0176305 commit 70761f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mineos.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def kill(self):
301301
@server_up(False)
302302
def archive(self):
303303
"""Creates a timestamped, gzipped tarball of the server contents."""
304+
self._make_directory(self.env['awd'])
304305
if self.up:
305306
self._command_stuff('save-off')
306307
self._command_stuff('save-all')
@@ -312,6 +313,7 @@ def archive(self):
312313
@server_exists(True)
313314
def backup(self):
314315
"""Creates an rdiff-backup of a server."""
316+
self._make_directory(self.env['bwd'])
315317
if self.up:
316318
self._command_stuff('save-off')
317319
self._command_stuff('save-all')

0 commit comments

Comments
 (0)