Change backup schedule to hourly

This commit is contained in:
Sam A. 2024-03-01 22:29:56 +01:00
parent 000726debe
commit 2637a7da83
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 4 additions and 11 deletions

View File

@ -11,7 +11,7 @@ services:
domainname: {{ fqdn }}
environment:
RUN_ON_STARTUP: false
BACKUP_CRON: 0 0 3 * * *
BACKUP_CRON: 0 0 * * * *
RESTIC_REPOSITORY: b2:{{ restic.b2.bucket }}:{{ restic.repo.path }}
RESTIC_PASSWORD: {{ restic.repo.password }}
RESTIC_BACKUP_SOURCES: /mnt/volumes
@ -20,21 +20,14 @@ services:
--exclude '*.tmp'
--verbose
RESTIC_FORGET_ARGS: >-
--keep-last 10
--keep-last 12
--keep-daily 7
--keep-weekly 5
--keep-monthly 12
{% if 'nextcloud' in apps_backup %}
PRE_COMMANDS: |-
docker exec -u www-data nextcloud-app-1 php occ maintenance:mode --on
POST_COMMANDS_EXIT: |-
docker exec -u www-data nextcloud-app-1 php occ maintenance:mode --off
{% endif %}
B2_ACCOUNT_ID: {{ restic.b2.id }}
B2_ACCOUNT_KEY: {{ restic.b2.key }}
TZ: {{ timezone }}
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- "./data:/mnt/restore:rw"
{% for app in apps_backup|sort %}
- "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro"
@ -45,7 +38,7 @@ services:
restart: always
environment:
RUN_ON_STARTUP: false
PRUNE_CRON: 0 0 4 * * *
PRUNE_CRON: 0 30 3 * * *
RESTIC_REPOSITORY: b2:{{ restic.b2.bucket }}:{{ restic.repo.path }}
RESTIC_PASSWORD: {{ restic.repo.password }}
RESTIC_PRUNE_ARGS: >-
@ -59,7 +52,7 @@ services:
restart: always
environment:
RUN_ON_STARTUP: false
CHECK_CRON: 0 0 5 * * *
CHECK_CRON: 0 30 4 * * *
RESTIC_REPOSITORY: b2:{{ restic.b2.bucket }}:{{ restic.repo.path }}
RESTIC_PASSWORD: {{ restic.repo.password }}
RESTIC_CHECK_ARGS: >-