Problem Description
I’ve noticed the backups had stopped syncing to the off site backup, and the email cron logs stopped mentioning the pre and post backup tasks in the emails.
On looking into the scripts, I noticed that the scripts in the directories didn’t have execute permissions:
sympl@vps3:/etc/sympl/backup.d/pre-backup.d$ ls -l
total 20
-rw-rw-r-- 1 sympl sympl 136 Jul 31 2019 00-check-root
-rw-rw-r-- 1 sympl sympl 520 Jun 21 2019 04-disable-lock
-rw-rw-r-- 1 sympl sympl 1897 Jun 21 2019 05-check-availspace
-rw-rw-r-- 1 sympl sympl 528 Jun 21 2019 06-enable-lock
lrwxrwxrwx 1 root root 22 Jul 31 2019 20-sympl-sqldump -> /usr/bin/sympl-sqldump
-rw-rw-r-- 1 sympl sympl 529 Jun 21 2019 30-clear-orphans
Note that the sqldump is the exception.
sympl@vps3:/etc/sympl/backup.d/post-backup.d$ ls -l
total 4
-rw-rw-r-- 1 sympl sympl 191 Oct 17 2019 99-upload_backup
My Raspberry Pi has the same issue but a day earlier.
Any Error Messages
Cron emails no longer include the output of those scripts
17 April 2020 at 06:56 the pre- and post-backup procedures were included in the email.
The following day 18 April 2020 at 06:30, they were not.
Looking at /var/log/apt/history.log
there is the following update of sympl-core, which seems suspicious.
Start-Date: 2020-04-17 06:56:28
Commandline: /usr/bin/unattended-upgrade
Upgrade: sympl-core:amd64 (10.0.191231.0, 10.0.200415.0)
End-Date: 2020-04-17 06:56:45
I’ve added the execute bits back with chmod a+x
in both directories, and running the backup manually means the pre- and post-backup procedures are running again. However since doing this at the start of writing this forum post, the execute bits are no longer set up on the scripts.
Environment
- Sympl Version [9.0/10.0]: Buster
- Sympl Testing Version? [Yes/No]: Yes
- Debian Version [Buster/Stretch]: Buster
- Hardware Type? [Dedicated/Virtual/Pi]: VPS/Raspbery Pi
- Hosted On? [name of hosting co]: Mythic Beasts