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