bsync icon indicating copy to clipboard operation
bsync copied to clipboard

bsync daemon

Open segator opened this issue 4 years ago • 2 comments

it will be nice to have bsync as a daemon and then using rest api to fix conflits and use FS notify to auto detect changes and sync files almost after file is just closed.

segator avatar Mar 05 '20 11:03 segator

I've been trying to get a Dropbox replacement for managing client servers. fswatch is handy, check out this script:

#!/bin/bash
alias live_rsync='rsync -azP --exclude ".DS_Store" --exclude "Icon*" --exclude "node_modules" --exclude ".vscode" ~/Sync/from_folder [email protected]:~'
fswatch -o . | while read f; do $live_rsync; done
  1. make an alias of the rsync command
  2. fswatch the directory and while loop through changes.
  3. do $live_rsync

works well except for when I create a new folder and/or move files it just makes copies all over the place.

0x4007 avatar Apr 14 '20 22:04 0x4007

hello @segator

This will be a huge improvement to add.

Note that there are already existing tools to handle bi-directionnal sync in almost real time :

  • https://syncthing.net/
  • https://www.csync.org/
  • https://github.com/deajan/osync

bsync is more intended to handle low frequency sync.

dooblem avatar Apr 20 '20 16:04 dooblem