1 ##### <%= @dirname %> #####
4 OLD_BAK_BASE=$BASE/older/j
5 BAK_BASE=${OLD_BAK_BASE}0
6 RSYNC_OUTPUT=$BASE/rsync_output
10 -o PreferredAuthentications=publickey \
11 -o StrictHostKeyChecking=yes \
12 -o ClearAllForwardings=yes \
14 echo "Fichier de verrouillage backup sur $DEST ou impossible de se connecter" >&2
18 rm -rf ${OLD_BAK_BASE}${NBR}
19 for j in `seq -w $(($NBR-1)) -1 0`; do
20 [ ! -d ${OLD_BAK_BASE}$j ] && continue
21 mv ${OLD_BAK_BASE}$j ${OLD_BAK_BASE}$(($j+1))
24 mv $RSYNC_OUTPUT $BAK_BASE
27 if [ "$skip" != "$DEST" ]; then