mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-24 01:01:03 +01:00
Removed skipping of unused volumes
This commit is contained in:
parent
0077efa63c
commit
25d428fc9c
@ -281,9 +281,6 @@ def main():
|
|||||||
for volume_name in volume_names:
|
for volume_name in volume_names:
|
||||||
print(f'Start backup routine for volume: {volume_name}')
|
print(f'Start backup routine for volume: {volume_name}')
|
||||||
containers = execute_shell_command(f"docker ps --filter volume=\"{volume_name}\" --format '{{{{.Names}}}}'")
|
containers = execute_shell_command(f"docker ps --filter volume=\"{volume_name}\" --format '{{{{.Names}}}}'")
|
||||||
if not containers:
|
|
||||||
print('Skipped due to no running containers using this volume.')
|
|
||||||
continue
|
|
||||||
if args.everything:
|
if args.everything:
|
||||||
backup_everything(volume_name, containers, args.shutdown)
|
backup_everything(volume_name, containers, args.shutdown)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user