mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2025-04-17 15:27:10 +00:00
Adjusting timers and sleeps on contabo backups
This commit is contained in:
parent
96220e593e
commit
8f16048878
@ -1,10 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Backup contabo db dayly
|
Description=Backup contabo db daily
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=*-*-* 11:00:00
|
|
||||||
Persistent=true
|
Persistent=true
|
||||||
AccuracySec=1h
|
OnCalendar=*-*-* 10:00:00
|
||||||
WakeSystem=true
|
WakeSystem=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
Description=Backup contabo files once per week
|
Description=Backup contabo files once per week
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
#DayOfWeek Year-Month-Day Hour:Minute:Second
|
|
||||||
OnCalendar=*-*-* 11:03:00
|
|
||||||
Persistent=true
|
Persistent=true
|
||||||
AccuracySec=1h
|
OnCalendar=*-*-* 10:03:00
|
||||||
|
WakeSystem=true
|
||||||
|
#DayOfWeek Year-Month-Day Hour:Minute:Second
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
sleep 50
|
||||||
sshKey=$(<.sshKey)
|
sshKey=$(<.sshKey)
|
||||||
serverBackupPath=$(<.serverBackupPath)
|
serverBackupPath=$(<.serverBackupPath)
|
||||||
localPath=$(<.localBackupPath)
|
localPath=$(<.localBackupPath)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
sleep 60
|
||||||
sshKey=$(<.sshKey)
|
sshKey=$(<.sshKey)
|
||||||
serverBackupPath=$(<.serverBackupPath)
|
serverBackupPath=$(<.serverBackupPath)
|
||||||
localPath=$(<.localBackupPath)
|
localPath=$(<.localBackupPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user