https://github.com/schollz/syncdir
Automatically discover peers and synchronize a folder
https://github.com/schollz/syncdir
file-sharing networking synchronization
Last synced: 2 months ago
JSON representation
Automatically discover peers and synchronize a folder
- Host: GitHub
- URL: https://github.com/schollz/syncdir
- Owner: schollz
- Created: 2018-04-27T10:39:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T19:26:36.000Z (about 5 years ago)
- Last Synced: 2025-07-03T16:14:48.484Z (3 months ago)
- Topics: file-sharing, networking, synchronization
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 37
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 2:**

## Install
To install, download [the latest release](https://github.com/schollz/syncdir) 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