#-------------------------------------------------------------------------------
#
# cron/rsync_phatblat.sh
# Syncs phatblat user dir between drives
#
#-------------------------------------------------------------------------------

. $HOME/.dotfiles/cron/cron.env
. $HOME/.dotfiles/shell/rsync.sh      # Defines sync function

# Sync user dir from iMac -> ThunderBay
time sync $phatblat_imac $phatblat_external "go"

#-------------------------------------------------------------------------------
#
# cron/rsync_phatblat.sh
# Syncs phatblat user dir between drives
#
#-------------------------------------------------------------------------------

. $HOME/.dotfiles/cron/cron.env
. $HOME/.dotfiles/shell/rsync.sh      # Defines sync function

this_host=$(hostname)

# Only run this on iMac
if [[ $this_host != "imac.local" ]]; then
  exit
fi

# Sync user dir from iMac -> ThunderBay
time sync $phatblat_imac $phatblat_external "go"

Configure sync command to only run on iMac
Configure sync command to only run on iMac
