mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
build
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import docker
|
||||
import requests
|
||||
import os
|
||||
|
||||
import time
|
||||
PORTAINER_URL = "https://port.sectorq.eu/api"
|
||||
API_KEY = "ptr_/5RkMCT/j3BTaL32vMSDtXFi76yOXRKVFOrUtzMsl5Y="
|
||||
HEADERS = {"X-API-Key": f"{API_KEY}"}
|
||||
@@ -78,8 +78,10 @@ def main():
|
||||
# Backup stacks
|
||||
for stack_name, vols in stack_volumes.items():
|
||||
stop_stack(stack_name)
|
||||
#input("Press Enter to continue with backup...")
|
||||
for v in vols:
|
||||
backup_volume(v)
|
||||
time.sleep(10) # Small delay to ensure stack is fully stopped
|
||||
start_stack(stack_name)
|
||||
|
||||
# Backup normal volumes
|
||||
|
||||
Reference in New Issue
Block a user