Bash script to detect when my USB is plugged in and to then sync it with a Directory

前端 未结 3 1505
陌清茗
陌清茗 2020-12-08 05:12

Is there a Bash script and/or daemon that I can write that will detect a specific USB drive and then sync that drive with a directory?

3条回答
  •  庸人自扰
    2020-12-08 05:48

    Here is an example python deamon that you could use for the listening part, then copying the files to your directory shouldn't be a problem.

提交回复
热议问题