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: https://www.christophe-casalegno.com/tools/sxsync.sh or from the Contributions page

--
Christophe Casalegno
https://all.bo

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!