added systemd unit file and timer.
This commit is contained in:
1 parent
9b36fabdca
commit
cc4aef7f85
2 files changed
+19
No files matched your search
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Making backup of NAME
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
WorkingDirectory=/home/user/git/disaster-recovery
|
||||||
|
ExecStart=/home/user/git/disaster-recovery/make_backup.sh backup.env
|
||||||
|
User=root
|
||||||
|
StandardOutput=journal
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Backup of NAME directory, disaster recovery
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=Mon-Sun *-*-* 04:00:00
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
|
|
||||||
Reference in new issue
Block a user