Remove redis and influxdb snapshots and add backups for rest

This commit is contained in:
Alex D. 2024-08-20 12:51:59 +00:00
parent f8d0279abf
commit e921edd3e7
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
10 changed files with 48 additions and 32 deletions

View File

@ -0,0 +1,13 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-cron.template
pkgrel=0
depends="$depends btrfs-progs"
install_if="$install_if redxen-config-${_rx_pkgname#backup-}"
source="hourly"
sha512sums="
ad4023b8aef113195633efab00c56fba29b99b51afedd8a147f241cabbc597ae2a77953f5871a86c334a4800d63a631943ff45f5d094435f524eed53e2e32c5b hourly
"

View File

@ -0,0 +1,3 @@
#!/bin/sh
mountpoint /var/backup/dovecot && \
/usr/libexec/caskd/btrfs-subvolume-delta /var/mail /var/backup/dovecot

View File

@ -0,0 +1,13 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-cron.template
pkgrel=0
depends="$depends btrfs-progs"
install_if="$install_if redxen-config-${_rx_pkgname#backup-}"
source="hourly"
sha512sums="
7520dff0c1ed3dcc966e8dbfd8aba1d660fa3a9dc03b6aeef24f4eafddb2f9fff85e8e52d0d19a5674f8585d25509bf24d59eae1a0c259d57bbd864f117de861 hourly
"

3
cron/backup-gitea/hourly Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
mountpoint /var/backup/gitea && \
/usr/libexec/caskd/btrfs-subvolume-delta /var/lib/gitea /var/backup/gitea

View File

@ -0,0 +1,13 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-cron.template
pkgrel=0
depends="$depends btrfs-progs"
install_if="$install_if redxen-config-${_rx_pkgname#backup-}"
source="hourly"
sha512sums="
a38b0992c6b95445b5fe2a68e0b29984c77663fdc937f199fd5b896ae12ab4c9e779d2e8f81e1744dfa17ebdeb6bbb8f8cea20c8781617b825eed6e358e044db hourly
"

View File

@ -0,0 +1,3 @@
#!/bin/sh
mountpoint /var/backup/postgres && \
/usr/libexec/caskd/btrfs-subvolume-delta /var/lib/postgresql /var/backup/postgres

View File

@ -1,13 +0,0 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-cron.template
pkgrel=0
depends="$depends btrfs-progs"
install_if="$install_if redxen-config-${_rx_pkgname#snapshot-}"
source="daily"
sha512sums="
985daf085ab967c5b69d791676075fac0f54ed153b3afb746ef51bee7c70cbdc98ef6a98fe69012a0a3568c99f9d2b02cb481fabc85680826451f6719d99450c daily
"

View File

@ -1,3 +0,0 @@
#!/bin/sh
/sbin/btrfs subvolume delete /var/lib/influxdb/.snap/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/influxdb /var/lib/influxdb/.snap/`date +"%u"`

View File

@ -1,13 +0,0 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-cron.template
pkgrel=0
depends="$depends btrfs-progs"
install_if="$install_if redxen-config-${_rx_pkgname#snapshot-}"
source="daily"
sha512sums="
c833ead61e470dd5dc1abd904ad14c77eb5d0117d444ed666300d544303884683c3c4606781ebc3186654aaa736da4ac4464bb0bb90d2568a5efc4b8dc947ed6 daily
"

View File

@ -1,3 +0,0 @@
#!/bin/sh
/sbin/btrfs subvolume delete /var/lib/redis/.snap/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/redis /var/lib/redis/.snap/`date +"%u"`