Sync dokku data to tank

This is much easier than mounting the files themselves
This commit is contained in:
Jake Howard 2023-10-01 17:06:09 +01:00
parent 3b303e4940
commit 5770ab4a59
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -51,3 +51,13 @@
mode: "644" mode: "644"
notify: restart nginx notify: restart nginx
become: true become: true
# https://dokku.com/docs/advanced-usage/backup-recovery/
- name: Sync data to app-data
cron:
name: clean up docker containers
hour: "*/6"
minute: 0
user: root
job: rsync --archive --progress -h /var/lib/dokku/{config,data,services} /home/dokku --exclude '/home/dokku/**/cache/*' /mnt/tank/app-data/dokku/
cron_file: dokku-data-sync