On request, a text only version of my question. (sorry for the repeat mail,
but this one has better readebility)
----
Hi there,
I am succesfully running daily and weekly backup scripts using rsnapshot for
some months now, but my monthly backups seem not to be running. I think it
is a problem with the timer but I cannot find the error. I want the monthly
backup to run on the first sunday of the month at 2:00 am and use the
following timed description:
OnCalendar=Sun *-*-01..07 02:00:00
I interpret this as "run on day 1, 2, 3, 4, 5, 6 and 7 of every month but
only when it is a sunday" I think this is correct but can anybody confirm
this?
Below are examples of my timer scripts and the listing of the backup folder.
Thanks for the help.
kind regards,
Berry Goossens
Below is a working example of my weekly backup timer: [Unit]
Description=rsnapshot weekly backup
[Timer]
#Elke zaterdag om 2:00
OnCalendar=Sat *-*-* 02:00:00
Persistent=true
Unit=***@weekly.service
[Install]
WantedBy=timers.target
And here the monthly version:
[Unit]
Description=rsnapshot monthly backup
[Timer]
#Elke 1e zondag van de maand om 2:00u (Sun *-*-01..07 betekent: elke 1e, 2e,
..., 7e dag van de maand als het zondag is)
OnCalendar=Sun *-*-01..07 02:00:00
Persistent=true Unit=***@monthly.service
[Install]
WantedBy=timers.target
And my current backup listing:
drwxr-xr-x 3 root root 4096 jan 17 09:00 4hourly.0
drwxr-xr-x 3 root root 4096 jan 17 05:00 4hourly.1
drwxr-xr-x 3 root root 4096 jan 17 01:00 4hourly.2
drwxr-xr-x 3 root root 4096 jan 16 21:00 4hourly.3
drwxr-xr-x 3 root root 4096 jan 16 17:00 4hourly.4
drwxr-xr-x 3 root root 4096 jan 16 13:00 4hourly.5
drwxr-xr-x 3 root root 4096 jan 16 01:00 daily.0
drwxr-xr-x 3 root root 4096 jan 15 01:00 daily.1
drwxr-xr-x 3 root root 4096 jan 14 01:00 daily.2
drwxr-xr-x 3 root root 4096 jan 13 01:00 daily.3
drwxr-xr-x 3 root root 4096 jan 12 01:00 daily.4
drwxr-xr-x 3 root root 4096 jan 11 01:00 daily.5
drwxr-xr-x 3 root root 4096 jan 10 01:00 daily.6
drwxr-xr-x 3 root root 4096 jan 7 01:00 weekly.0
drwxr-xr-x 3 root root 4096 dec 31 01:00 weekly.1
drwxr-xr-x 3 root root 4096 dec 24 01:00 weekly.2
drwxr-xr-x 3 root root 4096 dec 17 01:00 weekly.3
---
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
https://www.avast.com/antivirus