#!/bin/bash
# Definitions common to these scripts
# mybasedir=$(dirname "$0")
mybasedir=$PKGBASEDIR

source "$mybasedir/config.sh"
: "${szBaseDir:?}"
cd "$mybasedir/" || exit 1
echo "-------------------------------------"
echo "--- Basedir: $szBaseDir"
echo "--- Sync remote repository	---"
echo "-------------------------------------"

rsync -avh --update -e "ssh -i /private-files/.ssh/id_rsa" --progress $REPOUSERNAME@$REPOURL $szBaseDir/
