Compare commits

..

2 Commits

Author SHA1 Message Date
d1b6f21623 Added S3 Glacier backend 2021-12-28 23:43:51 +00:00
9c0586263f Fixed cron job sending useless mails 2021-12-28 23:43:02 +00:00
3 changed files with 12 additions and 2 deletions

View File

@ -9,6 +9,10 @@ backends:
type: local
path: /mnt/hdd/autorestic.backup
glacier:
type: rclone
path: scaleway-glacier:/autorestic-sagou.in
locations:
databases:
from: /mnt/ssd/backup-working/db-dumps
@ -28,6 +32,7 @@ locations:
- /opt/yunohost/wireguard/db/
to:
- hdd
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
options:
forget:
@ -37,6 +42,7 @@ locations:
from: /mnt/ssd/backup-working/gitea
to:
- hdd
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
hooks:
before:
@ -50,6 +56,7 @@ locations:
- /home/roxane
to:
- hdd
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
nextcloud:
@ -57,6 +64,7 @@ locations:
- /home/yunohost.app/nextcloud
to:
- hdd
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
#hooks:
#before:
@ -73,6 +81,7 @@ locations:
- /var/www/dokuwiki/data/media_meta
to:
- hdd
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
mail:

View File

@ -1,4 +1,5 @@
# Backup
Configuration (autorestic, cron) for the backup of [sagou.in](sagou.in).
Refer to the [dedicated wiki page](https://wiki.rockpro.ynh.fr/tech:backup#autorestic).
Refer to the [dedicated wiki page](https://wiki.sagou.in/tech:backup#autorestic).
Once initialized, move the repository keys into a `.autorestic.env` file along the `yml` as described in [https://autorestic.vercel.app/backend/env](the doc).

View File

@ -6,7 +6,7 @@ if [ "$ret" != 0 ] || [ -s /tmp/autorestic-err.log ]
then
printf "Command failed with return code $ret and log:\n$(cat /tmp/autorestic-err.log)" | mail -s "Autorestic Backup: Failed" root
else
if [ -s /tmp/autorestic.log ]
if [ $(wc -l < /tmp/autorestic.log) -gt 3 ]
then
printf "Command successfully finished with the following log:\n$(cat /tmp/autorestic.log)" | mail -s "Autorestic Backup: Success" root
fi