mirror of
				https://github.com/kevinveenbirkenbach/docker-volume-backup.git
				synced 2025-10-31 16:49:02 +00:00 
			
		
		
		
	Added condition to stop containers
This commit is contained in:
		| @@ -217,7 +217,10 @@ def is_image_ignored(container): | ||||
|     return False | ||||
|  | ||||
| def backup_with_containers_paused(volume_name, volume_dir, containers, shutdown): | ||||
|     stop_containers(containers) | ||||
|     if containers: | ||||
|         stop_containers(containers) | ||||
|     else: | ||||
|         print(f"{volume_name} has no containers to stop. Skipped.") | ||||
|     backup_volume(volume_name, volume_dir) | ||||
|      | ||||
|     # Just restart containers if shutdown is false | ||||
|   | ||||
		Reference in New Issue
	
	Block a user