init
This commit is contained in:
9
systemd_stuff/rsync.service
Normal file
9
systemd_stuff/rsync.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=rsync backup service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/backup.sh
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
9
systemd_stuff/rsync.timer
Normal file
9
systemd_stuff/rsync.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=rsync backup timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=01:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user