INC-2514 · P2
The Ibn Sina Pharmacies' nightly backups stopped without a single alert
Tangier · srv-gestion-01 · Ibn Sina Pharmacies · Monday 09:40
The Ibn Sina Pharmacies (four pharmacies in Tangier and Tetouan) manage stock and prescriptions on
srv-gestion-01 (Ubuntu 24.04, MariaDB). Every night at 02:30, a cron job runs
/usr/local/bin/sauvegarde-base.sh: it dumps the database into /sauvegardes, then copies it to the
Tetouan NAS with rclone.
This morning, the pharmacist wanted to restore an invoice: the most recent file dates from 6 October, and the NAS has received nothing since late September. Nobody received any alert.
History: on 1 October, Yassine installed rclone and added the copy to the NAS. On 7 October, Salma re-uploaded an edited version of the script from her PC with WinSCP.
Find out why the job fails, fix it and prove it will work tonight, under cron's conditions.
This simulation is reserved for students enrolled in a course.
Already enrolled? Log in.