mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-11-23 16:02:29 +00:00
Ensure the backup_process label is set for the backup process container
This commit is contained in:
@@ -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 :)
|
||||||
|
|||||||
Reference in New Issue
Block a user