From 8f16048878a5d137a901af819e0e6ff385a7150a Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sun, 13 Oct 2019 10:59:35 -0300 Subject: [PATCH] Adjusting timers and sleeps on contabo backups --- Services/backup-contabo-db.timer | 5 ++--- Services/backup-contabo-files.timer | 6 +++--- Services/backup-db.sh | 1 + Services/backup-files.sh | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Services/backup-contabo-db.timer b/Services/backup-contabo-db.timer index 35c69bb..c56753a 100755 --- a/Services/backup-contabo-db.timer +++ b/Services/backup-contabo-db.timer @@ -1,10 +1,9 @@ [Unit] -Description=Backup contabo db dayly +Description=Backup contabo db daily [Timer] -OnCalendar=*-*-* 11:00:00 Persistent=true -AccuracySec=1h +OnCalendar=*-*-* 10:00:00 WakeSystem=true [Install] diff --git a/Services/backup-contabo-files.timer b/Services/backup-contabo-files.timer index 33bcc15..c8025f3 100755 --- a/Services/backup-contabo-files.timer +++ b/Services/backup-contabo-files.timer @@ -2,10 +2,10 @@ Description=Backup contabo files once per week [Timer] -#DayOfWeek Year-Month-Day Hour:Minute:Second -OnCalendar=*-*-* 11:03:00 Persistent=true -AccuracySec=1h +OnCalendar=*-*-* 10:03:00 +WakeSystem=true +#DayOfWeek Year-Month-Day Hour:Minute:Second [Install] WantedBy=timers.target diff --git a/Services/backup-db.sh b/Services/backup-db.sh index 0f71c5a..167ee56 100755 --- a/Services/backup-db.sh +++ b/Services/backup-db.sh @@ -1,4 +1,5 @@ #! /bin/bash +sleep 50 sshKey=$(<.sshKey) serverBackupPath=$(<.serverBackupPath) localPath=$(<.localBackupPath) diff --git a/Services/backup-files.sh b/Services/backup-files.sh index 6927cb6..30e2f17 100755 --- a/Services/backup-files.sh +++ b/Services/backup-files.sh @@ -1,4 +1,5 @@ #! /bin/bash +sleep 60 sshKey=$(<.sshKey) serverBackupPath=$(<.serverBackupPath) localPath=$(<.localBackupPath)