You are not logged in.
Hi folks,
I ran into some trouble with a custom rsync backup script on my laptop. I've always wanted to automate the backup process with anacron. Since i could not get this to work properly I decided to run my script with a systemd timer.
While the actual script runs flawlessly if executed by my (as user) it fails when executed by the systemd timer. Since I use a ssh certificate to login to my NAS I assume, that this is where the problem comes from. In the log is says something like 'authentication failure' (have to look it up).
Is the systemd timer executed by the system? If so, how can my personal ssh certificate be used for an authentication with the timer?
Cheers
Offline
man systemctl | less -p --userMoving to NC...
Offline
Using cron is simple to run your shell script. As jasonwryan points out, you can also make a user a timer unit.
Example timer and service: https://github.com/graysky2/modprobed-d … aster/init
Install to /usr/lib/systemd/user/ for example.
Offline