mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 22:30:51 +00:00
Adjusting timers and sleeps on contabo backups
This commit is contained in:
parent
96220e593e
commit
8f16048878
@ -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]
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,5 @@
|
||||
#! /bin/bash
|
||||
sleep 50
|
||||
sshKey=$(<.sshKey)
|
||||
serverBackupPath=$(<.serverBackupPath)
|
||||
localPath=$(<.localBackupPath)
|
||||
|
@ -1,4 +1,5 @@
|
||||
#! /bin/bash
|
||||
sleep 60
|
||||
sshKey=$(<.sshKey)
|
||||
serverBackupPath=$(<.serverBackupPath)
|
||||
localPath=$(<.localBackupPath)
|
||||
|
Loading…
Reference in New Issue
Block a user