I know some answers on here have already mentioned git... I am just further agreeing with this answer.

If I was in your position (files I want to be shared on multiple servers) - I would create a git repository containing those files. With git, there is a master branch which (I would) represent as my current file base. However, I would also create a _live_ branch or similar. So, when I merge my changes into this branch, my servers would automatically execute a script, placing those files in their appropriate location.

I do this with website development. Once I merge my new changes to the _live_ branch, my website is updated automatically.

Of course to do this would require some git knowledge, as well as, for each server, knowing how to execute the script when the _live_ branch is updated.


On Wed, Aug 1, 2018 at 9:07 AM, Chris Green <cl@isbd.net> wrote:
I'm not expecting simple glib answers to this, just fishing around for
ideas and possible approaches.

I have quite a few systems spread around the place all running Debian
derived versions of Linux:-

    Desktop machine in my study, main work machine, runs xubuntu
    Laptop, used around the house and when away, runs xubuntu
    Backup machine, headless, in garage, runs xubuntu
    Raspberry pi on home LAN for DNS/DHCP etc., runs raspbian
    Virtual machine on Gandi, runs ubuntu
    Beaglebone Black on our boat, runs Debian

I have several bits of customised configuration that I would like to,
somehow, keep in sync on all the above machines, these are things like:-

    ~/.vilerc - editor configuration
    ~/.dircolors - colours for ls
    ...

Can anyone suggest a way of doing this?  If it was automatic (like
syncthing) than that would be lovely, but even a simple way to say
'please update all instances of ~/.dircolors' would be handy.

I'm using syncthing to keep the laptop and desktop machines in sync
and it works well but it's not perfect for synchronising just a few
files.  It also seems a rather heavyweight program to run on the pi
and the BBB just to synchronise two or three files. 

I don't really need 'instant' synchronisation either (as provided by
syncthing), something run by cron once an hour or even once a day
would be fine.

I can't just run rsync with a list of files from cron because not all
systems (not *any* in fact) have ssh access to other systems without
needing a password or key.

--
Chris Green

_______________________________________________
main@lists.alug.org.uk
http://www.alug.org.uk/
https://lists.alug.org.uk/mailman/listinfo/main
Unsubscribe?  See message headers or the web site above!