Commit fe5981f1 authored by ThibautDemare's avatar ThibautDemare

Fix the docker checkpoint command

parent b78bd80e
......@@ -12,7 +12,7 @@ def backup():
running_containers = run("docker ps --format '{{.Names}}'", shell=True, stdout=PIPE, stderr=PIPE).stdout.decode('utf-8').split("\n")
for c in running_containers:
if c: # if c is not empty (it happens for the last element in p)
Popen("docker checkpoint create --leave-running=true --checkpoint-dir='$(pwd)/"+str(c)"/ContainerBackup/' " + c + " " + "checkpoint_" + c)
Popen("docker checkpoint create --leave-running=true --checkpoint-dir=$(pwd)/"+str(c)+"/Backup/ " + str(c) + " " + "checkpoint_" + str(c), shell=True)
def checkForBackupNeedsAndWait():
# Should we backup the simulations ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment