Auto copy any device that is plugged in via USB - Raspberry Pi Forums


hello,

have relatively simple idea , wondering if has done it, or if can done. set rp automatically copy data stored on device when plugged usb port. guess data stored on sd card in easiest instance.

need advice ground up. i.e type of rp, bits , pieces need, code, play play steps , else helpful. cool if superstar programmer knows way make copy new data rather repeating data may still on device previous copy (not essential).

context low energy cost solution clearing space on gps device long trips in forest recording monkey behaviour. rp powered portable battery. time.

it can done.. have seen threads here doing same thing images. unfortunately dont have handy link such thread.

- starts "udev" rules can used trigger script when device inserted.
- work of script mount drive, locate files , copy them designated destination.
- command "rsync" can use "filenames", "modification date" or "checksums" avoid copying data transferred.


raspberrypi



Comments