This commit is contained in:
2025-08-04 18:24:30 +10:00
commit 9c9e8f09da
22 changed files with 533 additions and 0 deletions

17
backup_docker_volumes.yml Normal file
View File

@@ -0,0 +1,17 @@
---
- name: Backup Docker volumes from remote server
hosts: all
# become: yes
tasks:
- name: Ensure local backup directory exists
local_action: file
path=./backups
state=directory
mode=0755
- name: Synchronize /var/lib/docker/volumes to local ./backups
synchronize:
src: /var/lib/docker/volumes
dest: ./backups/
mode: pull
delete: no