1
0
Fork 0

Move docker root

This commit is contained in:
Florian RICHER 2023-12-21 22:20:10 +01:00
parent 0766d21420
commit d3bc1a89bb
3 changed files with 9 additions and 2 deletions

View file

@ -1,2 +1,2 @@
#!/bin/sh
cd {{ server.work_dir }} && borg create --stats -C zstd,22 --progress "{{ server.backup_dir }}::$(date --iso-8601=seconds)" .
cd {{ server.work_dir }} && borg create --stats -C zstd,22 --progress "{{ server.backup_dir }}::$(date --iso-8601=seconds)" . --exclude "{{ server.work_dir }}/docker"

View file

@ -1,4 +1,7 @@
---
# TODO : Copy template into /etc/docker/daemon.json
- name: set mydistribution
ansible.builtin.set_fact:
mydistribution: "{{ ansible_distribution | lower }}"
@ -36,4 +39,4 @@
community.docker.docker_network:
name: metrics
state: present
become: true
become: true

View file

@ -0,0 +1,4 @@
{
"data-root": "{{ server.work_dir }}/docker"
}