Giter Site home page Giter Site logo


A file sync client that uses a Subversion repo as a backing-store (in a simple Apache2 server via its WebDAV api), and does not have any other server-side install. It is written in Python, works on Windows, Mac and Linux, and does not depend on a Subversion install on the client.

It has been tested with files up to 12GB in size (made of random bytes). It has also been tested with a Subversion repository holding 3.4TB of history.

Corporates would be attracted to this, if they:

  • Prefer to deploy their own server storage (public or private cloud, on-premises, SBCs in the LAN, Docker containers), rather than trust an online service.
  • Want a file-sync solution with strong versioning, that's good enough for audits.
  • Already have a subversion instance somewhere
  • Don't want to be charged usage fees, however small.
  • Imagine a bunch of workflows around documents, who can edit them, how long for, and integrations with other applications and services.
  • Mind the lack of mobile device clients (for now)

(Home deployers might like it for many of the same reasons)

Releases

There have not been any releases yet, but Subsyncit certainly works if you've checked it out and launched it from the command line

Glossary

  • Client - a workstation, laptop or mobile device.
  • Server - a computer on which a suitable Subversion is installed (Mod_Web_Dav, SVNAutoversioning 'on', and others on).
  • Remote Subversion Repository (or repo) - on the server, a configuration of subversion that can take commits for so-authorized people.
  • Local Sync Directory - on the client a single directory, the contents for which will synchronized up and down to the remote Subversion repo.

Screenshots

There are none as Subsyncit does not have a user interface (yet).

Overview

Features in common with all file-sync technologies

  • Brings down added/changed/deleted files from the remote Subversion repo to the client's local sync directory.
  • Pushed up added/changed/deleted files from your client's local sync directory to the remote Subversion repo on the server.
  • Several people can maintain separate local sync directories and share files on a remote Subversion repo.
  • The server always wins; the software simply renames the local file out of the way. Though there's a possibility that for text-forms a three-way merge could be performed (TODO)

Additional features expected because Subversion is the backing store

  • Keeps an audit trail (historical versions)
  • Whole directory trees can be checked out en-masse, worked on, and committed back (per normal Svn workflow)
  • Branches are a configuration choice for novel usages.

Why not use a different VCS backing store?

  • Subversion speaks WebDAV meaning very simple client technologies can connect
  • Subversion allows direct remote access to any resource (or history of the same) without a clone and without a lasting cost to the server
  • Subversion allows Per-directry read and read+write permissions. So does Perforce.

Design goals, counter to the way Subversion normally works:

  • Does not maintain a working-tree (or 'working copy' or 'checkout') on the client.
  • there's no .svn/ folder(s).
  • therefore there is only one version of each file on the client system, which is important for large binaries
  • No Subversion install on client (if that wasn't obvious)

Working so far

  1. Two-way syncing of add/changes/deletes, including directories, and timer based polling of remote Subversion repo for changes over time.
  2. Deliberate 'quiet time' after a local change detected, in in order to not push a partially complete file-write to the remote Subversion repo.
  3. Fallback mechanism to detect local sync directory adds/changes/deletes that were not detected or pushed previously.
  4. Clash detection using sha1 - the server always wins, the local changed version is renamed out the way (see above)
  5. Ability to reject an incompatible web server - it silently just tries again later (needs work).
  6. Standard exclusions via file suffix.

Yet to develop / needs work

  1. UI for prompting user's Subversion id/password.
  2. Tray/task bar icon/status.
  3. Multiple sync directories (more than one server URL).
  4. Directory mask (globbing includes/excludes) per user.
  5. Percolation of read-only bits for situations when the end user if not permitted to PUT a file back if the change it. (Rasied with the Subversion dev team: SVN-4691).
  6. Hidden unzipping of MS Office documents on the server side. I've mulled this before and discussed it with the Subversion team, but will have to implement it client side.
  7. Merkle-tree behavior for subscription to changes

Frequently Asked Questions:

  1. Can this work with any WebDAV server? - No, it is tied to Subversion for now.
  2. Can it work with Subversion installs that are part of Assembla or RhodeCode's platforms? Yes, with two small changes to config.
  3. Is this 'decentralized'? - No, it is client server
  4. Does it have failover, DR, replication on the server side? No, that'd be additional setup (watch for how-to's later)

Further Reading

  1. Client Setup <-- this is all you need to read if you're trying out Subsyncit.
  2. Server Setup
  3. Contributing to Subsyncit

Fun fact

Subversion has a hidden Merkle-tree which this tech relies on. If you're super interested, I've blogged on Merkle trees generally: 1, 2, 3.

subsyncit's Projects

alpine-svn-dav icon alpine-svn-dav

Docker image for Subversion with WebDAV and Auto-versioning (on Alpine Linux)

subsyncit icon subsyncit

File-sync backed by Subversion (no client install of Svn executables)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.