From 95defe9e8a430b2e5f8cfc51bc3d6be2d9cac3bb Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 17 Apr 2019 00:08:24 +0200 Subject: [PATCH] Update cli.py --- restic_volume_backup/cli.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/restic_volume_backup/cli.py b/restic_volume_backup/cli.py index d9be495..ccad7e2 100644 --- a/restic_volume_backup/cli.py +++ b/restic_volume_backup/cli.py @@ -11,16 +11,16 @@ def main(): containers = RunningContainers() if args.action == 'status': - containers.print_services() - # volumes = containers.volume_mounts() - # for vol in volumes: - # print(vol) - # print(vol.mount_string()) + print() + print("Backup config for compose project '{}'".format(containers.this_container.project_name)) + print() - # binds = containers.bind_mounts() - # for vol in binds: - # print(binds) - # print(vol.mount_string()) + for container in containers.containers: + print('service: {}'.format(container.service_name)) + for mount in container.filter_mounts(): + print(' - {}'.format(mount.source)) + + print() elif args.mode == 'backup': print("Starting backup ..")