docker-volume-backup/cmd/backup
Frederik Ring c3daeacecb
Improve Swarm support (#333)
* Query for labeled services as well

* Try scaling down services

* Scale services back up

* Use progress tool from Docker CLI

* In test, label both services

* Clean up error and log messages

* Document scale-up/down approach in docs

* Downgrade Docker CLI to match client

* Document services stats

* Do not rely on PreviousSpec for storing desired replica count

* Log warnings from Docker when updating services

* Check whether container and service labels collide

* Document script behavior on label collision

* Add additional check if all containers have been removed

* Scale services concurrently

* Move docker interaction code into own file

* Factor out code for service updating

* Time out after five minutes of not reaching desired container count

* Inline handling of in-swarm container level restart

* Timer is more suitable for timeout race

* Timeout when scaling down services should be configurable

* Choose better filename

* Reflect changes in naming

* Rename and deprecate BACKUP_STOP_CONTAINER_LABEL

* Improve logging

* Further simplify logging
2024-01-31 12:17:41 +01:00
..
archive.go Replace Gzip with PGzip (#266) 2023-09-03 16:49:52 +02:00
config.go Improve Swarm support (#333) 2024-01-31 12:17:41 +01:00
exec.go Error message on demultiplexing command output receives bad error arg (#295) 2023-10-29 15:43:34 +01:00
hooks.go Use go 1.20, join errors using stdlib (#182) 2023-02-02 21:07:25 +01:00
lock.go Cleanup: Lint warnings and deprecated packages (#263) 2023-08-27 18:14:55 +02:00
main.go Improve Swarm support (#333) 2024-01-31 12:17:41 +01:00
notifications.go Add method for converting object to JSON in template (#319) 2023-12-20 20:44:45 +01:00
notifications.tmpl Added custom notification messages using text/template (#60) 2022-02-11 20:05:16 +01:00
script.go Improve Swarm support (#333) 2024-01-31 12:17:41 +01:00
stats.go Improve Swarm support (#333) 2024-01-31 12:17:41 +01:00
stop_restart.go Improve Swarm support (#333) 2024-01-31 12:17:41 +01:00
util.go Improve Swarm support (#333) 2024-01-31 12:17:41 +01:00