GithubHelp home page GithubHelp logo

lexfreeman / filesync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geosoft1/filesync

0.0 1.0 0.0 17 KB

Simple cross platform files sync service in Golang.

License: GNU General Public License v3.0

Go 100.00%

filesync's Introduction

filesync

Synchronizes a collection of files from a server for one or many clients across different platforms. You can use any operating system supported by go compiler for server and client.

Server and clients can be in different networks. Yes, you can sync over the internet.

How it works?

Just complete the conf.json file and run the server. Do the same thing with the client.

The server read periodicaly the files list and build a sync mask. The client request periodicaly the sync mask and compare with local sync mask. If different datetime are found the files are queued for download.

Communication between server and clients is in JSON format (what else?).

Config file

Both server and client use the same file format

 {
      "ip":"",
      "port":"8080",
      "path":"files",
      "synctime":"2"
 }

Description

 "ip":"",
 "port":"8080",

Address and port for listening on server. No need to change ip but the port in a convenient value. For clients this is the address and port of the server.

  "path":"files",

For server and clients this is the files location. Not necessary to be the same on server and clients. Any subfolders will be synchronized.

 "synctime":"2"

Sync time represent the period measured in seconds until the next sincronization. Server and clients can have different values. For example the server can sync files at 10s and clients can request sync mask at 60s. Use proper values when you deal with big data to avoid overloading the machines.

Note that smaller sync time value will not override a sync in progress.

Known issue: Big number of files (tens of thousands) can overload the processor by numbering. So, keep the number of files in a reasonable quantity.

filesync's People

Watchers

 avatar

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.