diff --git a/cli_meter/sync-scada-data.sh b/cli_meter/sync-scada-data.sh index a9d39f3..e154743 100755 --- a/cli_meter/sync-scada-data.sh +++ b/cli_meter/sync-scada-data.sh @@ -43,15 +43,18 @@ NUM_MONTHS=$(read_config "num_months") DEST_DIR=$(read_config "dest_dir") CUR_DATE=$(date +%Y-%m-01) +mkdir -p $DEST_DIR + log "Syncing from $SRC_DIR to $DEST_DIR for the last $NUM_MONTHS months" # Loop over the number of months specified for ((i=0; i