I've used cron specifically in my other distros (mostly servers) to take care of automating my backups and since cron isn't supported in Solus I am trying to use systemd timers to do the job (saw a post here that cron wasn't supported)
No matter what I do I keep getting this error
/etc/systemd/system/backup.timer:1: Assignment outside of section. Ignoring.
backup.timer: Timer unit lacks value setting. Refusing.
Unit backup.timer has a bad unit file setting.
I'm definitely no expert so I just follow guides online. Says timer unit lacks value so I've been changing the entries under [Timer] but no dice. Here are my .sh,service and timer entries
.sh
#!/bin/bash
rsync -a / /mnt/nas/
service
# backup service for timer /etc/systemd/backup.service
[Unit]
Description=A script to backup root directory to nas
[Service]
ExecStart=/home/user/backup.sh
timer
# back up timer /etc/systemd/backup.timer
[Unit]
Description=Runs every sunder at midnight
[Timer]
OnCalendar=Sun *-*-* 00:00:00
Persistent=true
[Install]
WantedBy=timers.target
I'm doing something wrong right? thanks guys!