{{tag>Brouillon Pb FS Sauvegarde rsync}} # Pb rsync ## protocol version mismatch http://ss64.com/bash/rsync.html ~~~ # rsync -axP acme:/var/www/ ~/backup/www protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(176) [Receiver=3.1.1] ~~~ ~~~bash ssh acme /bin/true > out.dat ~~~ Le fichier ''out.dat'' doit être vide. Si ce n'est pas le cas Exemple : J'ai dû modifié mon ''.bashrc'' (de **Acme**) comme suit : ''.bashrc'' ~~~bash bin/start.sh ~~~ ''.bashrc'' ~~~bash if [ $TERM == 'xterm' ] then bin/start.sh fi ~~~ A tester : ''--no-motd'' ## Err - No space left on device - but work if remove Voir : * https://superuser.com/questions/1776098/rsync-no-space-left-on-device-although-plenty-of-space-available ~~~bash find ./app?/L*/log/ -type f -print0 | rsync -e \"ssh -o StrictHostKeyChecking=no -o CheckHostIP=no -p 22 -i /home/app_a/.ssh/id_l_sync_hst1 \" --bwlimit="5000" -c --itemize-changes --files-from=- --from0 "/home/app_a" "l_sync_hst1"@"192.168.1.44":"/home/l_sync_hst1/data/" ~~~ ~~~ cd+++++++ app1/ cd+++++++ app1/L12/ cd+++++++ app1/L12/log/