#!/bin/sh # Variables de couleurs VERT="\\033[1;32m" NORMAL="\\033[0;39m" ROUGE="\\033[1;31m" ROSE="\\033[1;35m" BLEU="\\033[1;34m" BLANC="\\033[0;02m" BLANCLAIR="\\033[1;08m" JAUNE="\\033[1;33m" CYAN="\\033[1;36m" # Variables adaptables du script SOURCE="root@le_serveur" REP_SRC="/data/" DESTINATION="" REP_DEST="/data" echo -e $VERT " *******************************" echo -e $VERT " | $ROUGE SCRIPT mirroring $CYAN Rsync $VERT|". echo -e $VERT " *******************************" echo echo -e $BLEU" Etes-vous sur de vouloir executer ce script ? Y/N" read ANSWER if [ $ANSWER == Y ] ; then rsync -av --del --force $SOURCE:$REP_SRC $REP_DEST echo -e $CYAN " ==> Votre copie est terminee..." else echo -e $JAUNE ' Ciao a + tard !' fi