Coder Social home page Coder Social logo

vogu66 / uniter-network Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

For now, a small utility that allows to sync data between multiple computers over the network, using [Unison](https://github.com/bcpierce00/unison)

C 86.61% Makefile 0.32% Shell 13.07%

uniter-network's Introduction

Uniter network

For now, a small utility that allows to sync data between multiple computers over the network, using Unison.

How to use

Pre-requisite:

  • computers with ssh ports open -- port 46 is for now default
  • nmap installed on running machine
  • unison installed on all machines
  • a config file for now stored in ~/.bin/backup_hosts/hostlist

The config file is filled manually and contains the signature of each device, as well as which folders to sync for each. The folder lines are indicated with a star, and having a single name means the same path is used for both machines. An example file syncing cheatsheets with 2 machines would look like:

ED25519 SHA256:******************************************* MachineName1 vogu
* Cheats /home/vogu/.config/cheat/cheatsheets/personal

RSA SHA256:******************************************* MachineName2 UserName2
* Cheats /home/vogu/.config/cheat/cheatsheets/personal /home/UserName2/.config/cheat/cheatsheets/personal

Then, based on the config file, the utility checks which known hosts are connected on the network, then syncs all possible files twice in a star configuration to ensure all files are up to date on all machines.

Nmap is used to check network availability, so using this on a public network is kinda rude.

About this code

It's a bit messy, and is far from following all good practices, and should probably be split, organised, and a bunch of features should be added. It's just a minimum viable product to answer my most basic needs for now. But it works.

uniter-network's People

Contributors

vogu66 avatar

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.