better backups
This commit is contained in:
parent
f33cb6d261
commit
2896d7bb88
1 changed files with 6 additions and 6 deletions
|
@ -112,13 +112,13 @@ backup:
|
|||
vault.vm.chapo.li:
|
||||
backup:
|
||||
pre_hook: [ "docker compose -f /root/vaultwarden/docker-compose.yml down" ]
|
||||
paths: [ "/root/vaultwarden/data" ]
|
||||
paths: [ "/root/vaultwarden/data", "/root/vaultwarden/docker-compose.yml" ]
|
||||
post_hook: [ "docker compose -f /root/vaultwarden/docker-compose.yml up -d" ]
|
||||
|
||||
cryptpad.vm.chapo.li:
|
||||
backup:
|
||||
pre_hook: [ "docker compose -f /root/docker-compose.yml down" ]
|
||||
paths: [ "/root/data" ]
|
||||
paths: [ "/root/data", "/root/docker-compose.yml", "/root/customize/application_config.js", "/root/config.js" ]
|
||||
post_hook: [ "docker compose -f /root/docker-compose.yml up -d" ]
|
||||
|
||||
git.vm.chapo.li:
|
||||
|
@ -130,7 +130,7 @@ backup:
|
|||
- mkdir /tmp/backup
|
||||
- unzip /tmp/forgejo.zip -d /tmp/backup
|
||||
- docker exec forgejo-db-1 pg_dump -U forgejo > /tmp/backup/pgdump.sql
|
||||
paths: [ "/tmp/backup" ]
|
||||
paths: [ "/tmp/backup", "/root/forgejo/docker-compose.yml" ]
|
||||
post_hook: [ "rm -r /tmp/backup" ]
|
||||
|
||||
todo.vm.chapo.li:
|
||||
|
@ -146,7 +146,7 @@ backup:
|
|||
- docker exec -i -w /tmp vikunja-db-1 bash -c 'mysqldump --password={{ vikunja_password }} vikunja > /tmp/vikunja-backup.sql'
|
||||
- docker cp vikunja-db-1:/tmp/vikunja-backup.sql /tmp
|
||||
- docker exec -i -w /tmp vikunja-db-1 bash -c 'rm /tmp/vikunja-backup.sql'
|
||||
paths: [ /root/vikunja/files /tmp/vikunja-backup.sql ]
|
||||
paths: [ /root/vikunja/files, /tmp/vikunja-backup.sql, /root/vikunja/config.js, /root/vikunja/docker-compose.yml ]
|
||||
post_hook: [ "rm -r /tmp/vikunja-backup.sql" ]
|
||||
|
||||
mail.vm.chapo.li:
|
||||
|
@ -158,13 +158,13 @@ backup:
|
|||
xmpp.vm.chapo.li:
|
||||
backup:
|
||||
pre_hook: []
|
||||
paths: [ /var/lib/prosody ]
|
||||
paths: [ /var/lib/prosody, /etc/prosody ]
|
||||
post_hook: []
|
||||
|
||||
sharkey.vm.chapo.li:
|
||||
backup:
|
||||
pre_hook: [ "docker exec -it sharkey-db-1 pg_dump firefish --user example-firefish-user --format=plain > /tmp/sharkey.sql" ]
|
||||
paths: [ "/root/sharkey/files", "/tmp/sharkey.sql" ]
|
||||
paths: [ "/root/sharkey/files", "/tmp/sharkey.sql", /root/sharkey/docker-compose.yml, /root/sharkey/.config ]
|
||||
post_hook: [ "rm /tmp/sharkey.sql" ]
|
||||
|
||||
unmanaged:
|
||||
|
|
Loading…
Add table
Reference in a new issue