> The NNCP utility might be worth taking a look at. There is a way to set
> it up alongside udev to automatically transfer files from connected USB
> storage.
I did a bit of research at the NNCP util and yes, this can be used for automatic file transfers.
We can create a new udev rule that would trigger nncp when a USB device is connected. The directories where the files need to be transferred can be done by creating a config file for NNCP and setting the 'nncpdir' variable as the desired path. Further customization can be done by altering the nncp config and udev rules.
I also took a look at the rsync utility which is more widely used but does not provide features like encryption and compression. Although, it does have a feature that transfers only the changes within the file instead of the whole file (better transfer speeds).
Personally, I think nncp is a better choice here as it provides more features and the tradeoff for using rsync is not that much.
Regards,
Shivam