Compare commits

...

6 Commits

Author SHA1 Message Date
0196223ee1 Update gitea command after gitea update 2025-01-16 08:17:17 +00:00
2aab34b8ce Add all homes and fix gitea command 2024-03-21 08:40:01 +00:00
de7f45083a Revert "Replace oiseauroch-sftp with garage S3 cluster with rhizome"
This reverts commit f3f05cd014.
Because sagouin is no longer in the garage experiment, snif
2024-01-18 16:56:46 +00:00
f3f05cd014 Replace oiseauroch-sftp with garage S3 cluster with rhizome 2023-10-19 20:47:56 +00:00
3373ae8f08 removed share_multimedia and dokuwki 2023-04-07 18:48:31 +00:00
ff1e2e6e4a fix(runcron): typos 2023-03-23 22:02:20 +00:00
2 changed files with 11 additions and 24 deletions

View File

@@ -32,7 +32,6 @@ locations:
configs:
from:
- /etc
- /home/yunohost.conf
- /var/spool/cron/crontabs/
- /opt/yunohost/wireguard/db/
to:
@@ -65,14 +64,22 @@ locations:
cron: '0 3 * * 4' # At 3:00am on Thursday
hooks:
before:
- sudo -u gitea /opt/gitea/gitea dump -f - > /mnt/ssd/backup-working/gitea/gitea.zip
- sudo -u gitea /var/www/gitea/gitea dump -f - > /mnt/ssd/backup-working/gitea/gitea.zip
home:
from:
- /home/agathe
- /home/antoine
- /home/baptiste
- /home/con
- /home/josephine
- /home/mariage
- /home/marieclaire
- /home/oiseauroch
- /home/raphaeldutrieux
- /home/roxane
- /home/shrek
- /home/thomas
to:
- hdd
- oiseauroch
@@ -100,19 +107,6 @@ locations:
#after:
#- sudo -u www-data php occ maintenance:mode --off
dokuwiki:
from:
- /var/www/dokuwiki/conf
- /var/www/dokuwiki/data/pages
- /var/www/dokuwiki/data/meta
- /var/www/dokuwiki/data/media
- /var/www/dokuwiki/data/media_meta
to:
- hdd
- oiseauroch
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
bookstack:
from:
- /var/www/bookstack/.env
@@ -146,10 +140,3 @@ locations:
- oiseauroch
- glacier
cron: '0 3 * * 4' # At 3:00am on Thursday
shared_multimedia:
from:
- /home/yunohost.multimedia/share
to:
- hdd
cron: '0 3 1 * *' # At 3:00am on the 1st

View File

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