Giter Club home page Giter Club logo

roaming-homes's Introduction

roaming-homes

Description

Roaming homes/profiles for linux with unison. On user login and after this every 60 seconds the user home get's synchronized with the server by user space systemd. It does not synchronize if the server is unavailable or another instance of unison is running.

Please share your thoughts

Overview

Requirements

  • ssh server where user can login without password this can be accomplished either with authorized ssh keys or in combination with an identity management server e.g. FreeIPA (https://www.freeipa.org)
  • same version of unison installed on both clients and server
  • client OS must support user space systemd units (systemctl --user). RHEL/CentOS do not yet support it. It is planned for version 8.
  • python (>=2.7)

Installation

At the moment the rpm has to be built first. You can then copy and paste it to other clients within same distro and install it directly.

  1. yum -y install rpmdevtools
  2. git clone https://github.com/radiorabe/roaming-homes.git
  3. cd roaming-homes
  4. rpmbuild -bb roaming-homes.spec
  5. rpm -i ~/rpmbuild/RPMS/noarch/roaming-homes*.rpm
  6. In /etc/roaming-homes/roaming-homes.conf add at least the fqdn or ip of the server to the variable SSH_SERVER

Configuration

Almost all configuration can be done in /etc/roaming-homes/roaming-homes.conf. Unfortunately the synchronization frequency has to be set in seconds in /usr/lib/systemd/user/unisonsync.timer. After this you'll have to reload the systemd-daemon systemd --user --global daemon-reload.

FAQ

  • Why unison?

    Unison supports a client and server setup. It maintains a file system modification database on both ends which makes the synchronization more efficient than e.g. with rsync. Furthermore unison provides a huge amount of settings and logic out of the box.

  • Why not nfs with cache?

    The solution with nfs requires a server that is always online. roaming-homes targets devices that are not always within the corporate network such as mobile workstations.

TODOs

Links

roaming-homes's People

Contributors

smirta avatar

Watchers

 avatar  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.