Discussion:
[rsnapshot-discuss] rsnapshot timed monthly backup not running
Berry Goossens@ziggo.nl
2017-01-17 13:07:39 UTC
Permalink
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
David Cantrell
2017-01-17 13:25:01 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head><body>...
Please don't post HTML-only to the mailing list. If you want to use
HTML, please configure your client to also include an equivalent plain
text version.
--
David Cantrell | Bourgeois reactionary pig

Planckton: n, the smallest possible living thing
Christopher Barry
2017-01-17 14:06:10 UTC
Permalink
On Tue, 17 Jan 2017 14:07:39 +0100 (CET)
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
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
[Unit]
Description=rsnapshot weekly backup
[Timer]
#Elke zaterdag om 2:00
OnCalendar=Sat *-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target
[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
[Install]
WantedBy=timers.target
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
re-verify that NO tabs exist in your config file.
--
Regards,
Christopher
Berry Goossens
2017-01-17 15:26:47 UTC
Permalink
On request, a text only version of my question.

----
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
Berry Goossens
2017-01-17 15:41:44 UTC
Permalink
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

Loading...