Bon, ça n'a pas marché !
Sur le serveur cible dans mon autorized_key j'ai bien :
command="$HOME/bin/rrsync -ro ~/backups/",no-agent-forwarding,no-port-forwarding,no-pty,no-user-rc,no-X11-forwarding ssh-rsa AAAAB3Nz...Automated remote backup
Et dans mon script cron :
rsync -e "ssh -i $HOME/.ssh/id_remote_backup" -auv --delete-before --exclude 'tmp/' /var/www/ecritures-services/ root@den01:/var/www/html/ecritures-services/
J'ai mis le script comme indiqué sur le serveur cible et comme ça ne fonctionnait pas sur le serveur initial
gunzip /usr/share/doc/rsync/scripts/rrsync.gz -c > ~/bin/rrsync
La clé porte le bon nom (j'ai suivi le tuto)
Et j'ai le message d'erreur :
1 2 3 4 5 6 7 8 9 10
| perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/root/bin/rrsync: Restricted directory does not exist!
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9] |
Voilà. Avant d'abandonner... une dernière remarque , un dernier conseil ???
Merci d'avance.
Partager