Skip to content
davidmzPublic

About

One-way, low-latency directory sync from Windows to a *nix server over SSH

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

OwySync

Русский

One-way, low-latency directory sync from Windows to a Linux or FreeBSD server over SSH. It is built for "edit locally, run on a dev server" workflows with large source trees: 10k–200k files and frequent small edits. It replaces setups like dklab RealSync without Cygwin, Perl or rsync.

  • A single owysync.exe, nothing to install on the server: it uses SSH, SFTP and standard Unix tools.
  • Every start runs a full resync; with 100k unchanged files that takes a few seconds. After that, live mode sends each saved file within about a second.
  • Mass changes (git checkout, first upload) automatically go through tar archives at full link speed.
  • Safe by default: it never syncs into a directory without its marker file, never deletes remote sockets, and never follows remote symlinks.

Quick start

cd C:\work\myproject
owysync init

Review .owysync\ignore. The first sync deletes everything on the server that is not in the local directory and not ignored. Then preview and run:

owysync sync --once --dry-run
owysync sync

Documentation

Building

go build -o owysync.exe ./cmd/owysync

The version comes from git: a commit tagged vX.Y.Z builds as vX.Y.Z, any other commit as a Go pseudo-version, with +dirty for uncommitted changes. To release, tag the commit and push the tag (git tag v0.1.0 && git push origin v0.1.0): the release workflow tests, builds owysync.exe and publishes it as a GitHub release.

License

MIT


OwySync по-русски

Односторонняя синхронизация каталога с Windows на сервер Linux или FreeBSD по SSH с низкой задержкой. Сделана для сценария «правлю локально, запускаю на dev-сервере» с большими деревьями исходников: 10–200 тыс. файлов и частые мелкие правки. Заменяет решения вроде dklab RealSync без Cygwin, Perl и rsync.

  • Один owysync.exe, на сервер ничего не устанавливается: используются SSH, SFTP и стандартные утилиты Unix.
  • Каждый запуск — полный resync; на 100 тыс. неизменённых файлов это несколько секунд. Затем live-режим доставляет каждый сохранённый файл примерно за секунду.
  • Массовые изменения (git checkout, первая заливка) автоматически идут через tar-архивы на полной скорости канала.
  • Безопасность по умолчанию: не синхронизирует в каталог без файла-маркера, не удаляет сокеты на сервере, не переходит по удалённым symlink.

Быстрый старт

cd C:\work\myproject
owysync init

Проверьте .owysync\ignore: первая синхронизация удаляет на сервере всё, чего нет в локальном каталоге и что не исключено. Затем посмотрите план и запустите:

owysync sync --once --dry-run
owysync sync

Документация

Лицензия

MIT

About

One-way, low-latency directory sync from Windows to a *nix server over SSH

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages