Screen from Aliexpress https://www.aliexpress.us/item/3256803317280463.html?spm=a2g0o.order_list.0.0.21ef1802iopEpb&gatewayAdapt=glo2usa&_randl_shipto=US

https://github.com/mathoudebine/turing-smart-screen-python

Basic data flow path:

  • Device is plugged in. udev triggers
  • udev script finds mounted path of device and sends to unix socket to trigger daemon
  • daemon finds uuid of drive
    • Check uuid in uuid-table to see if it’s a known drive, and if so, the friendly name of the drive
    • Create a new folder for the copy session with the uuid + time
  • Mount the device to a temporary location
  • Copy the contents of the device to the copy session folder on the local drive
  • Calculate the md5 of the data and add a metadata file with all of the md5’s for the copy session
  • Copy the contents of the copy session to the network drive
  • Once both copies are completed, erase the drive / reformat / whatever the rule is for this friendly-name
  • Rely on kernel mount for data (not samba / nfs / cephfs)