You are not logged in.
Hi I have a weekly timer for rsnapshot.service
The timer looks like and is under /etc/systemd/system/timers.targets.wants
[Unit]
Description=rsnapshot weekly backup
Requires=rsnapshot.service
[Timer]
Unit=rsnapshot.service
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target.wants
The systemd service loooks like this
The file is under /etc/systemd/system/multi-user.target.wants
[Unit]
Description=rsnapshot weekly backup
Requires=NetworkManager.service home-backup.automount
Wants=rsnapshot.timer
[Service]
User=root
Group=root
Type=oneshot
Nice=19
IOSchedulingClass=idle
ExecStart=/usr/bin/rsnapshot weekly
sudo systemctl status rsnapshot.timer
● rsnapshot.timer - rsnapshot weekly backup
Loaded: loaded (/etc/systemd/system/rsnapshot.timer; enabled; vendor preset: disabled)
Active: active (waiting) since Fri 2022-06-24 17:06:59 CEST; 1 day 1h ago
Until: Fri 2022-06-24 17:06:59 CEST; 1 day 1h ago
Trigger: Mon 2022-06-27 00:00:00 CEST; 1 day 5h left
Triggers: ● rsnapshot.service
Jun 24 17:06:59 lapt0p systemd[1]: Started rsnapshot daily backup.
Why there stand daily backup?
[morta@lapt0p system]$ sudo systemctl status rsnapshot.service
● rsnapshot.service - rsnapshot weekly backup
Loaded: loaded (/etc/systemd/system/rsnapshot.service; static)
Active: activating (start) since Sat 2022-06-25 18:39:37 CEST; 45s ago
TriggeredBy: ● rsnapshot.timer
Main PID: 96180 (rsnapshot)
Tasks: 2 (limit: 37713)
Memory: 7.9M
CPU: 482ms
CGroup: /system.slice/rsnapshot.service
├─96180 /usr/bin/perl -w /usr/bin/rsnapshot weekly
└─96184 /usr/bin/rm -rf /home/backup/BACKUP/lapt0p/weekly.3/
Jun 25 18:39:37 lapt0p systemd[1]: Starting rsnapshot weekly backup...
What is wrong?
The service is executing properly if I do systemctl start rsnapshot.service
Last edited by Morta (2022-06-25 16:42:32)
Offline
Nobody?
Offline