I created the follwing service file in ~/.config/systemd/user to backup my work data when I'm logged in at work.
[Unit]
Description=Backup Work Related Files
[Service]
Type=oneshot
ExecStartPre=/usr/bin/ping -c 1 -W 1 xxx
ExecStart=/usr/bin/rsync -avzuhH --progress --delete --exclude=.Trash-1000 /some/folder/ xxx@xxx:Documents/backup
ExecStart=/usr/bin/rsync -avzuhH --progress file xxx@xxx:Documents/backup/file
I can find the service with systemctl --user list-unit-files and I can also start the servive with systemctl --user start backup_work.service. For some reason though I can't see the logs for this service with joualctl --user -u backup_work.service. I see the logs of rsync and ping when I look normally in the joual but I can't filter to my service file.
Is there something I need to change in the service file?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 374
تاريخ: سه
شنبه
2 شهريور
1395 ساعت: 19:00