il faut au préalable avoir installer sshpass
le script :
#!/bin/bash
sshpass -f ‘passwd-kenobi.txt’ rsync –exclude-from=ExclusionRsync.txt -avz -e ssh /home/ alx@192.168.0.95:/home/alx/RAID1
le fichier ExclusionRsync.txt : il faut saisir les dossiers à partir du dossier source : /home
alx/partage
alx/.cache
alx/.local
alx/.mozilla