Compare commits
No commits in common. "d1b6f216237997a55617a789cca51a6e8884bf5b" and "5b746d98939085423866700908ff9ccad57a43c5" have entirely different histories.
d1b6f21623
...
5b746d9893
@ -9,10 +9,6 @@ backends:
|
|||||||
type: local
|
type: local
|
||||||
path: /mnt/hdd/autorestic.backup
|
path: /mnt/hdd/autorestic.backup
|
||||||
|
|
||||||
glacier:
|
|
||||||
type: rclone
|
|
||||||
path: scaleway-glacier:/autorestic-sagou.in
|
|
||||||
|
|
||||||
locations:
|
locations:
|
||||||
databases:
|
databases:
|
||||||
from: /mnt/ssd/backup-working/db-dumps
|
from: /mnt/ssd/backup-working/db-dumps
|
||||||
@ -32,7 +28,6 @@ locations:
|
|||||||
- /opt/yunohost/wireguard/db/
|
- /opt/yunohost/wireguard/db/
|
||||||
to:
|
to:
|
||||||
- hdd
|
- hdd
|
||||||
- glacier
|
|
||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
||||||
options:
|
options:
|
||||||
forget:
|
forget:
|
||||||
@ -42,7 +37,6 @@ locations:
|
|||||||
from: /mnt/ssd/backup-working/gitea
|
from: /mnt/ssd/backup-working/gitea
|
||||||
to:
|
to:
|
||||||
- hdd
|
- hdd
|
||||||
- glacier
|
|
||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
||||||
hooks:
|
hooks:
|
||||||
before:
|
before:
|
||||||
@ -56,7 +50,6 @@ locations:
|
|||||||
- /home/roxane
|
- /home/roxane
|
||||||
to:
|
to:
|
||||||
- hdd
|
- hdd
|
||||||
- glacier
|
|
||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
@ -64,7 +57,6 @@ locations:
|
|||||||
- /home/yunohost.app/nextcloud
|
- /home/yunohost.app/nextcloud
|
||||||
to:
|
to:
|
||||||
- hdd
|
- hdd
|
||||||
- glacier
|
|
||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
||||||
#hooks:
|
#hooks:
|
||||||
#before:
|
#before:
|
||||||
@ -81,7 +73,6 @@ locations:
|
|||||||
- /var/www/dokuwiki/data/media_meta
|
- /var/www/dokuwiki/data/media_meta
|
||||||
to:
|
to:
|
||||||
- hdd
|
- hdd
|
||||||
- glacier
|
|
||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
||||||
|
|
||||||
mail:
|
mail:
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# Backup
|
# Backup
|
||||||
|
|
||||||
Configuration (autorestic, cron) for the backup of [sagou.in](sagou.in).
|
Configuration (autorestic, cron) for the backup of [sagou.in](sagou.in).
|
||||||
Refer to the [dedicated wiki page](https://wiki.sagou.in/tech:backup#autorestic).
|
Refer to the [dedicated wiki page](https://wiki.rockpro.ynh.fr/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).
|
|
2
runcron
2
runcron
@ -6,7 +6,7 @@ if [ "$ret" != 0 ] || [ -s /tmp/autorestic-err.log ]
|
|||||||
then
|
then
|
||||||
printf "Command failed with return code $ret and log:\n$(cat /tmp/autorestic-err.log)" | mail -s "Autorestic Backup: Failed" root
|
printf "Command failed with return code $ret and log:\n$(cat /tmp/autorestic-err.log)" | mail -s "Autorestic Backup: Failed" root
|
||||||
else
|
else
|
||||||
if [ $(wc -l < /tmp/autorestic.log) -gt 3 ]
|
if [ -s /tmp/autorestic.log ]
|
||||||
then
|
then
|
||||||
printf "Command successfully finished with the following log:\n$(cat /tmp/autorestic.log)" | mail -s "Autorestic Backup: Success" root
|
printf "Command successfully finished with the following log:\n$(cat /tmp/autorestic.log)" | mail -s "Autorestic Backup: Success" root
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user