This commit is contained in:
2025-11-30 20:50:00 +01:00
parent 972be8425a
commit aa68e0f291
3 changed files with 24 additions and 11 deletions

View File

@@ -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