#!/bin/sh

## requites AWS key/secret in ~/.aws

DRYRUN=0

if [[ ${DRYRUN} == 1 ]]; then
    cmd="time aws s3 sync --dryrun /mnt/ftpusers/home s3://royaltyshare-ftp-bucket/home"
else
    cmd="time aws s3 sync /mnt/ftpusers/home s3://royaltyshare-ftp-bucket/home"
fi

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
date
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo ${cmd}
eval ${cmd}

