Skip to content

Instantly share code, notes, and snippets.

@ph00lt0
Last active April 23, 2022 17:12
Show Gist options
  • Save ph00lt0/5025f25d2e4f7e558862f2a81f0d37b8 to your computer and use it in GitHub Desktop.
Save ph00lt0/5025f25d2e4f7e558862f2a81f0d37b8 to your computer and use it in GitHub Desktop.
Sync changes in cryptomator vaults to remote vault using _duck and fswatch
fswatch -0 ~/vaults/ | xargs -0 -I {} -t sh -c 'f="{}"; duck --upload sftp://<hostname>/vaults`basename "${f}"` "${f}" -existing overwrite'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment