Skip to content
Automatically discover peers and synchronize a folder
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
README.md
go.mod
logger.go
models.go
syncdir.go
utils.go

README.md

syncdir

Easily keep directories on local networks in sync.

syncdir allows any two computers to stay in sync on a local network. Just run in the directory you want to sync on each computer and they will stay in sync. Each computer will discover another and then they will update each other on a file change (file creation/deletion/modification and permissions change). The first directory to change will change all the others.

Experimental! Try it but make sure to backup your folder first...

Example

Press Ctl + F5 to have these gifs run simultaneously.

Computer 1:

computer 1

Computer 2:

computer 1

Install

To install, download the latest release or install from source:

$ go get -v github.com/schollz/syncdir/...

Run

On Computer 1:

$ cd directory_to_sync && syncdir

And on Computer 2:

$ cd directory_to_sync && syncdir

syncdir will automatically discover the other computers and sync the files. The synchronization will create/delete based on the directory on the computer that created the last change. Dotfiles are ignored.

License

MIT

You can’t perform that action at this time.