Adjusting timers and sleeps on contabo backups

This commit is contained in:
Bruno F. Fontes 2019-10-13 10:59:35 -03:00
parent 96220e593e
commit 8f16048878
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
4 changed files with 7 additions and 6 deletions

View File

@ -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]

View File

@ -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

View File

@ -1,4 +1,5 @@
#! /bin/bash
sleep 50
sshKey=$(<.sshKey)
serverBackupPath=$(<.serverBackupPath)
localPath=$(<.localBackupPath)

View File

@ -1,4 +1,5 @@
#! /bin/bash
sleep 60
sshKey=$(<.sshKey)
serverBackupPath=$(<.serverBackupPath)
localPath=$(<.localBackupPath)