added opensourcepos and changed cron bkp time

This commit is contained in:
2023-10-31 14:38:05 +01:00
parent f82d1d491c
commit 064923f076
8 changed files with 201 additions and 106 deletions

View File

@@ -52,7 +52,7 @@
user: "{{ system_user_name }}"
name: "borgbackup the docker dir to nfs share"
minute: "30"
hour: "4"
hour: "2"
job: "sudo /usr/local/bin/backup_to_nfs.sh > /dev/null 2>&1"
notify: Restart cron
when: backup_via_nfs == true

View File

@@ -47,7 +47,7 @@ if [ "$mount_successful" -eq 1 ]; then
done
# Backup-Integrität überprüfen
borg_check_result=$(borg check --repository-only --max-duration 43200 "$backup_repository" 2>&1)
borg_check_result=$(borg check --repository-only --max-duration 7200 "$backup_repository" 2>&1)
# Backup-Status und Speicherauslastung prüfen
if [ "$backup_status" -eq 0 ]; then

View File

@@ -48,7 +48,7 @@ if [ "$mount_successful" -eq 1 ]; then
done
# Backup-Integrität überprüfen
borg_check_result=$(borg check --repository-only --max-duration 43200 "$backup_repository" 2>&1)
borg_check_result=$(borg check --repository-only --max-duration 7200 "$backup_repository" 2>&1)
# Backup-Status und Speicherauslastung prüfen
if [ "$backup_status" -eq 0 ]; then