Compare commits
6 Commits
b9bbbe7d55
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0196223ee1 | |||
| 2aab34b8ce | |||
| de7f45083a | |||
| f3f05cd014 | |||
| 3373ae8f08 | |||
| ff1e2e6e4a |
@@ -32,7 +32,6 @@ locations:
|
|||||||
configs:
|
configs:
|
||||||
from:
|
from:
|
||||||
- /etc
|
- /etc
|
||||||
- /home/yunohost.conf
|
|
||||||
- /var/spool/cron/crontabs/
|
- /var/spool/cron/crontabs/
|
||||||
- /opt/yunohost/wireguard/db/
|
- /opt/yunohost/wireguard/db/
|
||||||
to:
|
to:
|
||||||
@@ -65,14 +64,22 @@ locations:
|
|||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
||||||
hooks:
|
hooks:
|
||||||
before:
|
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:
|
home:
|
||||||
from:
|
from:
|
||||||
|
- /home/agathe
|
||||||
- /home/antoine
|
- /home/antoine
|
||||||
- /home/baptiste
|
- /home/baptiste
|
||||||
- /home/con
|
- /home/con
|
||||||
|
- /home/josephine
|
||||||
|
- /home/mariage
|
||||||
|
- /home/marieclaire
|
||||||
|
- /home/oiseauroch
|
||||||
|
- /home/raphaeldutrieux
|
||||||
- /home/roxane
|
- /home/roxane
|
||||||
|
- /home/shrek
|
||||||
|
- /home/thomas
|
||||||
to:
|
to:
|
||||||
- hdd
|
- hdd
|
||||||
- oiseauroch
|
- oiseauroch
|
||||||
@@ -100,19 +107,6 @@ locations:
|
|||||||
#after:
|
#after:
|
||||||
#- sudo -u www-data php occ maintenance:mode --off
|
#- 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:
|
bookstack:
|
||||||
from:
|
from:
|
||||||
- /var/www/bookstack/.env
|
- /var/www/bookstack/.env
|
||||||
@@ -146,10 +140,3 @@ locations:
|
|||||||
- oiseauroch
|
- oiseauroch
|
||||||
- glacier
|
- glacier
|
||||||
cron: '0 3 * * 4' # At 3:00am on Thursday
|
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
|
|
||||||
|
|||||||
4
runcron
4
runcron
@@ -4,10 +4,10 @@ ret=$?
|
|||||||
|
|
||||||
if [[ "$ret" != 0 || -s /tmp/autorestic-err.log ]]
|
if [[ "$ret" != 0 || -s /tmp/autorestic-err.log ]]
|
||||||
then
|
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
|
else
|
||||||
if [[ $(wc -l < /tmp/autorestic.log) -gt 15 ]]
|
if [[ $(wc -l < /tmp/autorestic.log) -gt 15 ]]
|
||||||
then
|
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
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user