]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/templates/backup/backup_dirname_head.sh.erb
Add a way to specify a port for backup hosts
[perso/Immae/Projets/Puppet.git] / modules / role / templates / backup / backup_dirname_head.sh.erb
index e20cfd396faeedb77d1123baacfc767ba2c60b02..15a0448783de8970f7b7261822e120513aca1700 100644 (file)
@@ -1,4 +1,5 @@
 ##### <%= @dirname %> #####
+PORT="<%= @port %>"
 DEST="<%= @dest %>"
 BASE="<%= @base %>"
 OLD_BAK_BASE=$BASE/older/j
@@ -10,6 +11,7 @@ if ! ssh \
     -o PreferredAuthentications=publickey \
     -o StrictHostKeyChecking=yes \
     -o ClearAllForwardings=yes \
+    -p $PORT \
     $DEST backup; then
   echo "Fichier de verrouillage backup sur $DEST ou impossible de se connecter" >&2
   skip=$DEST