Christophe CasalegnoAutoimmune warrior, Entrepreneur & Bio/Hacker

brain@127.0.0.1:~$ cat post.html

SxSync: a bash shell script to make rsync easier to use between Linux servers

rsync_shell_bash

Hello everyone, I have just published a new tool that makes it easy to use rsync over SSH, on any port, to synchronize a directory (handy for migrations). It works in both directions.

In antesync mode, data is synchronized from the server you run it on to a target server, while in retrosync mode it fetches data from elsewhere and synchronizes it locally.

It is very simple to use:

14:36:05-sx@turing:~/brain$ ./sxsync.sh
./sxsync.sh typesync(antesync or retrosync) user ip/host srcdirectory dstdirectory sshport
example: ./sxsync.sh retrosync brain 192.168.0.1 /home/brain/ /home/chris/ 65022
Note: if you have exclude liste create exclude.txt and one line par rule cf:
	/home/toto
	/home/tata/exclude.cfg
	/home/titi/blabla
	/home/www/sites

To download the script: http://127.0.0.1:8767/tools/sxsync.sh or from the Contributions page

Christophe Casalegno

​If you want to talk tech and science, you can join me on the TechnoBar Telegram or Facebook.

You can also find me on:

Twitter: https://twitter.com/Brain0verride
Facebook (Page): https://www.facebook.com/brain.override
Facebook (Account): https://www.facebook.com/christophe.casalegno
Linkedin: https://www.linkedin.com/in/christophecasalegno/
Telegram (Channel): https://t.me/ChristopheCasalegno
Telegram (Account): https://t.me/Brain0verride

By email: brain@christophe-casalegno.com
My website: http://127.0.0.1:8767

2 comments

  1. Petite précision pour ceux qui comme moi voudrait utiliser ce script, les excludes sont a mettre ne chemin relatif au répertoire a synchroniser.J’ai mis un petit temps a comprendre pourquoi il me synchronisait quand même les dossier a exclure ;)

    Un grand merci Christophe pour la qualité du contenu que tu met dispo !

    Maxime.

Leave a comment

Add a comment
Christophe Casalegno Brain 0verride

Keep it simple
and direct!