#!/bin/bash -e
#-------------------------------------------------------------------------------
#
# 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 ThunderBay -> iMac
time sync $phatblat_external $phatblat_imac "go"

#!/bin/bash -e
#-------------------------------------------------------------------------------
#
# 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 ThunderBay -> iMac
sync $phatblat_external $phatblat_imac "go"

Remove time function from rsync cron script so that it won't output anything in the normal case
Remove time function from rsync cron script so that it won't output anything in the normal case
