Hi everyone.
I've written a udev rule to backup data in a usb stick when plugged in (that is backup data FROM usb to HDD).
Before updating to 12.3 the script worked fine. I can't recall if something else came in the way, but after updating the script gets killed shortly after starting. The device mounts, rsync starts and the detached script gets killed killing rsync and leaving the device mounted.

Any pointers as to what might be going wrong?

The rule is:
Code:
KERNEL=="sd?1", ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="JetFlash", ATTRS{model}=="Transcend 4GB   ", RUN+="/usr/local/bin/backupUSB.sh %k"
The script is:
Code:
#!/bin/bash
{
    # Log beggining of backup
    /usr/bin/logger USB Backup - Beginning at `date`
    # if needed, create the mount directory
    if [ ! -d /mnt/backup ] ; then mkdir /mnt/backup ; fi


    /bin/mount -t vfat -o shortname=mixed,iocharset=utf8 /dev/$1 /mnt/backup


    # Backup command using RSync
    rsync -avh --progress --modify-window=2 /mnt/backup/** /home/diggy/backups/TrancendBackup/ > /tmp/usblog.txt


    # force sync of files to disk before unmounting
    /bin/sync


    # unmount the backup disk
    /bin/umount /mnt/backup


    # Log end of backup
    /usr/bin/logger USB Backup - End at `date`
} &