Script to copy a backup to external usb harddrive for a 3-2-1+ backup strategy.
The USB disk being disconnected most of the time make it secure for remote attacks.
Tested on debian 12
udev rules is located at /usr/lib/udev/rules.d/97-offline_backup.rules
0b8e6986-ec09-8e44-b31f-38e944220a66 is the partition ID, it can be get by ls -l /dev/disk/by-uuid/
systemd file is located at /usr/lib/systemd/system/offline-backup-connected.service
shell script is located at /root/scripts/on_usb_connected.sh
(chould be owned by root:root and chmod 700)