Sync dokku data to tank
This is much easier than mounting the files themselves
This commit is contained in:
parent
3b303e4940
commit
5770ab4a59
1 changed files with 10 additions and 0 deletions
|
@ -51,3 +51,13 @@
|
|||
mode: "644"
|
||||
notify: restart nginx
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue