USB key auto-syncing?
- Started
- Last post
- 1 Response
- bry
for my USB key, i'd like for it to perform file/data syncing operations right when i plug it in. things like updating to the newest versions of documents, or automatically move files on the hard drive marked to be copied over to the USB key the next time it gets plugged in.
what's the best way to do this? are there programs that make this easy to do?
- sparker0
what os?
i've done something similar with a custom built linux router. if you're on os x, then it probably works simlarly.
i have a router with a flash card reader installed. when i plug in the flash card, i run a single command at the shell that mounts the flash card and then runs rsync to copy all the logs to the flash card then deletes the logs from the drive.
i've not tried, but i'm sure the script could be modified to either run at the boot/default level or detect the driver and device initialization in the kernel when you plug the flash card/usb key into the port.
the latter would be a bit more difficult, though.
i just wrote the utility in bash.