D
D
dlinyj2012-12-10 16:56:08
Data synchronization
dlinyj, 2012-12-10 16:56:08

Flash drive data sync?

I realize the question is a bit dated in the era of cloud storage, but guess what, there are machines out there with no Internet access at all.
In general, there is a machine that has a folder. It is necessary that when mounting a certain flash drive, the files on the machine and on the flash drive are synchronized.
Then this flash drive is transferred to another machine and synchronization took place there. A sort of offline dropbox (for which it is used).
The main point is that the machine should ignore other flash drives and synchronize with a specific media.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eddy_Em, 2012-12-10
@dlinyj

This is quite simple to do: we write a udev rule that, when this particular flash drive is connected (by identifier), mounts the flash drive, starts, say, rsync, unmounts the flash drive, beeps (to know that the synchronization is over and you can pull out the flash drive).

M
Melkij, 2012-12-10
@melkij

udev, idVendor and idProduct (if not paranoid) can be considered a sufficient condition for identifying a flash drive. The same udev can immediately run a certain script.
Something from this area: habrahabr.ru/post/136595/ habrahabr.ru/post/27889/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question