mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Change backup logging to append instead of overwritting
This commit is contained in:
parent
4e547fbcb7
commit
2f9be424d3
2 changed files with 1 additions and 4 deletions
|
|
@ -10,5 +10,5 @@
|
||||||
state: present
|
state: present
|
||||||
minute: 0
|
minute: 0
|
||||||
hour: 4
|
hour: 4
|
||||||
job: "/root/fullBackup.sh > /var/log/backup.log 2>&1"
|
job: "/root/fullBackup.sh >> /var/log/backup.log 2>&1"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,6 @@ borg create -v --stats --compression lz4 \
|
||||||
/backups \
|
/backups \
|
||||||
--exclude '/var/lib/nextcloud/db'
|
--exclude '/var/lib/nextcloud/db'
|
||||||
|
|
||||||
# Route the normal process logging to journalctl
|
|
||||||
2>&1
|
|
||||||
|
|
||||||
# If there is an error backing up, reset password envvar and exit
|
# If there is an error backing up, reset password envvar and exit
|
||||||
if [ "$?" = "1" ] ; then
|
if [ "$?" = "1" ] ; then
|
||||||
export BORG_PASSPHRASE=""
|
export BORG_PASSPHRASE=""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue