Changeset 379


Ignore:
Timestamp:
Jan 22, 2013, 12:34:00 PM (7 years ago)
Author:
Rick van der Zwet
Message:

Added port logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/snapshot-sync.sh

    r346 r379  
    66#
    77# Rick van der Zwet <info@rickvanderzwet.nl>
     8#
    89
    910
    1011FQDN=${1:-tyan.wirelessleiden.nl}
    1112HOSTID=`echo $FQDN | awk -F "." '{print $1}'`
     13
     14# Get the SSH Port and strip FQDN
     15PORT=`echo $FQDN | awk -F: '{print $2}'`
     16PORT=${PORT:-22}
     17FQDN=`echo $FQDN | awk -F: '{print $1}'`
    1218
    1319DIRS=${2:-"configbackup mysqlbackup"}
Note: See TracChangeset for help on using the changeset viewer.