Ensure the backup_process label is set for the backup process container

This commit is contained in:
Einar Forselv 2019-04-18 03:53:03 +02:00
parent f97986c0af
commit 30246a2346
1 changed files with 3 additions and 0 deletions

View File

@ -34,12 +34,15 @@ def main():
# TODO: Errors when repo already exists
restic.init_repo(config.repository)
print(containers.this_container.environment)
print("Starting backup container..")
backup_runner.run(
image=containers.this_container.image,
command='restic-volume-backup start-backup-process',
volumes={},
enviroment={},
labels={"restic-volume-backup.backup_process": 'True'},
)
# Separate command to avoid spawning infinite containers :)