diff --git a/playbooks/apps/files/bin/clean-old-backups b/playbooks/apps/files/bin/clean-old-backups deleted file mode 100755 index 15fff82..0000000 --- a/playbooks/apps/files/bin/clean-old-backups +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -set -euo pipefail -find /mnt/data/backups/hass/* -mtime +5 -delete diff --git a/playbooks/apps/files/bin/dump-nextcloud b/playbooks/apps/files/bin/dump-nextcloud deleted file mode 100755 index 235edb8..0000000 --- a/playbooks/apps/files/bin/dump-nextcloud +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -euo pipefail -/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -T db pg_dump -Fc -U nextcloud nextcloud > /mnt/data/nextcloud/db_export/backup.dump -/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -T db pg_dumpall --globals-only -U nextcloud > /mnt/data/nextcloud/db_export/roles.sql diff --git a/playbooks/apps/files/bin/nextcloud-auto-update b/playbooks/apps/files/bin/nextcloud-auto-update deleted file mode 100755 index 06b8594..0000000 --- a/playbooks/apps/files/bin/nextcloud-auto-update +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -set -euo pipefail -/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -T --user www-data nextcloud php occ app:update --all diff --git a/playbooks/apps/files/bin/nextcloud-cron b/playbooks/apps/files/bin/nextcloud-cron deleted file mode 100755 index 6e5e23e..0000000 --- a/playbooks/apps/files/bin/nextcloud-cron +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -set -euo pipefail -/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -dT --user www-data nextcloud php cron.php diff --git a/playbooks/apps/files/bin/nextcloud-preview b/playbooks/apps/files/bin/nextcloud-preview deleted file mode 100755 index 858e2bd..0000000 --- a/playbooks/apps/files/bin/nextcloud-preview +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -set -euo pipefail -/usr/bin/docker compose -f /mnt/data/nextcloud/docker-compose.yaml exec -dT --user www-data nextcloud php occ preview:pre-generate diff --git a/playbooks/apps/files/bin/restic-check b/playbooks/apps/files/bin/restic-check deleted file mode 100755 index d3e3291..0000000 --- a/playbooks/apps/files/bin/restic-check +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -euo pipefail -source /mnt/data/bin/resticenv -/usr/bin/restic check --read-data-subset=700M diff --git a/playbooks/system/cron.yaml b/playbooks/system/cron.yaml index 561e749..4fba56b 100644 --- a/playbooks/system/cron.yaml +++ b/playbooks/system/cron.yaml @@ -10,30 +10,6 @@ hour: 4 weekday: SUN job: /mnt/data/bin/healthcheck docker-system-prune /mnt/data/bin/docker-system-prune - - name: Cron - Clean old backups - ansible.builtin.cron: - name: clean old backups - minute: 55 - hour: 4 - job: /mnt/data/bin/healthcheck clean-old-backups /mnt/data/bin/clean-old-backups - - name: Cron - Nextcloud cron - ansible.builtin.cron: - name: Nextcloud cron - minute: "*/5" - job: /mnt/data/bin/healthcheck nextcloud-cron /mnt/data/bin/nextcloud-cron - disabled: true - - name: Cron - Nextcloud preview - ansible.builtin.cron: - name: Nextcloud preview - minute: "*/7" - job: /mnt/data/bin/healthcheck nextcloud-preview /mnt/data/bin/nextcloud-preview - disabled: true - - name: Cron - Nextcloud update apps - ansible.builtin.cron: - name: Nextcloud update apps - special_time: daily - job: /mnt/data/bin/healthcheck nextcloud-auto-update /mnt/data/bin/nextcloud-auto-update - disabled: true - name: Cron - Dump manuels ansible.builtin.cron: name: Dump manuels @@ -49,12 +25,6 @@ name: Dump miniflux minute: 50 job: /mnt/data/bin/healthcheck dump-miniflux /mnt/data/bin/dump-miniflux - - name: Cron - Dump nextcloud - ansible.builtin.cron: - name: Dump nextcloud - minute: 52 - job: /mnt/data/bin/healthcheck dump-nextcloud /mnt/data/bin/dump-nextcloud - disabled: true - name: Cron - Dump voyages.coccomagnard.fr ansible.builtin.cron: name: Dump voyages.coccomagnard.fr @@ -106,13 +76,6 @@ hour: 13 day: 10 job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-lcl-checking - - name: Cron - Download Octopus Energy proof of address - ansible.builtin.cron: - name: Download Octopus Energy proof of address - minute: 0 - hour: 13 - day: 15 - job: /mnt/data/bin/healthcheck downloader /mnt/data/bin/download-octopus - name: Cron - Restart plex container for auto version check ansible.builtin.cron: name: Restart plex container for auto version check