Commit 01ed107b authored by ThibautDemare's avatar ThibautDemare

Debug: only one checkpoint at a time

parent c11ae250
......@@ -12,7 +12,7 @@ def backup(strDate):
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=/mnt/TDEMARE/"+strDate+"/"+str(c)+"/Backup/ " + str(c) + " " + "checkpoint_" + str(c), shell=True)
run("docker checkpoint create --leave-running=true --checkpoint-dir=/mnt/TDEMARE/"+strDate+"/"+str(c)+"/Backup/ " + str(c) + " " + "checkpoint_" + str(c), shell=True)
def checkForBackupNeedsAndWait(strDate):
# 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