added Timer and service
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nextcloud Data Backup
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/root/nextcloudRemoteBackupScripts/
|
||||||
|
ExecStart=/root/nextcloudRemoteBackupScripts/NextcloudBackupScript.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nextcloud Data Backup Timer
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=1min
|
||||||
|
OnCalendar=Mon-Fri *-*-* 23:00:00
|
||||||
|
#OnUnitActiveSec=6h
|
||||||
|
Unit=MittagsAppDBBackup.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user