updated directory name, changed configs and systemctl slightly, preparing to make it useable for backups
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Creates backups thrice a week
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=file_mover
|
||||
WorkingDirectory=/home/file_mover
|
||||
ExecStart=/home/file_mover/run_backups.sh
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Creates backups thrice a week
|
||||
Requires=backups.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Mon,Thu,Sat 10:00
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Moves demos from the local machine to remote destinations every 5 minutes
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=file_mover
|
||||
WorkingDirectory=/home/file_mover
|
||||
ExecStart=/home/file_mover/run_demo_mover.sh
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Moves demos from the local machine to remote destinations every 5 minutes
|
||||
Requires=demo_mover.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:0,5,10,15,20,25,30,35,40,45,50,55
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user