Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Unison can't do this on its own, but you could write a shell script that checks if the drives are mounted, and only runs Unison if they are. The details of the script will have to change depending on whether, once both drives are mounted, you want to check for changes continually between the drives (use Unison's repeat = watch option), or only sync every few seconds or minutes or something. Commented Sep 15, 2018 at 17:26
  • You might look at rsync as you could trigger it running wirh both drives are in the system at the same time.
    – Hogstrom
    Commented Sep 16, 2018 at 0:33
  • What happens if you updated file X separately on both drives and then try to sync? What do you want to happen?
    – mmmmmm
    Commented Sep 19, 2018 at 22:29