Ensure the backup_process label is set for the backup process container
This commit is contained in:
parent
f97986c0af
commit
30246a2346
|
@ -34,12 +34,15 @@ def main():
|
||||||
# TODO: Errors when repo already exists
|
# TODO: Errors when repo already exists
|
||||||
restic.init_repo(config.repository)
|
restic.init_repo(config.repository)
|
||||||
|
|
||||||
|
print(containers.this_container.environment)
|
||||||
|
|
||||||
print("Starting backup container..")
|
print("Starting backup container..")
|
||||||
backup_runner.run(
|
backup_runner.run(
|
||||||
image=containers.this_container.image,
|
image=containers.this_container.image,
|
||||||
command='restic-volume-backup start-backup-process',
|
command='restic-volume-backup start-backup-process',
|
||||||
volumes={},
|
volumes={},
|
||||||
enviroment={},
|
enviroment={},
|
||||||
|
labels={"restic-volume-backup.backup_process": 'True'},
|
||||||
)
|
)
|
||||||
|
|
||||||
# Separate command to avoid spawning infinite containers :)
|
# Separate command to avoid spawning infinite containers :)
|
||||||
|
|
Loading…
Reference in New Issue