Skip to content

Instantly share code, notes, and snippets.

@cduruk
Created March 24, 2011 20:51
Show Gist options
  • Save cduruk/885848 to your computer and use it in GitHub Desktop.
Save cduruk/885848 to your computer and use it in GitHub Desktop.
if [[ "$TM_SSH_REMOTE_PATH" == "" ]]; then
exit_show_tool_tip "Missing project variable: TM_SSH_REMOTE_PATH"
fi
rsync \
-auz \
--stats \
--delete \
--exclude *.tmproj \
--exclude-from '/Users/cduruk/digg/cduruk.local/rsync-exclude.txt' \
${TM_SSH_PORT:+ --port=$TM_SSH_PORT} \
${TM_SSH_USER:+$TM_SSH_USER@}$TM_SSH_HOST:$TM_SSH_REMOTE_PATH/ \
$TM_PROJECT_DIRECTORY
if [[ "$TM_SSH_REMOTE_PATH" == "" ]]; then
exit_show_tool_tip "Missing project variable: TM_SSH_REMOTE_PATH"
fi
rsync \
-auz \
--stats \
--delete \
--exclude *.tmproj \
--exclude-from '/Users/cduruk/digg/cduruk.local/rsync-exclude.txt' \
${TM_SSH_PORT:+ --port=$TM_SSH_PORT} \
${TM_SSH_USER:+$TM_SSH_USER@}$TM_SSH_HOST:$TM_SSH_REMOTE_PATH/ \
$TM_PROJECT_DIRECTORY
if [[ "$TM_SSH_REMOTE_PATH" == "" ]]; then
exit_show_tool_tip "Missing project variable: TM_SSH_REMOTE_PATH"
fi
rsync \
-auz \
--stats \
--delete \
--exclude *.tmproj \
--exclude-from '/Users/cduruk/digg/cduruk.local/rsync-exclude.txt' \
${TM_SSH_PORT:+ --port=$TM_SSH_PORT} \
${TM_SSH_USER:+$TM_SSH_USER@}$TM_SSH_HOST:$TM_SSH_REMOTE_PATH/ \
$TM_PROJECT_DIRECTORY
if [[ "$TM_SSH_REMOTE_PATH" == "" ]]; then
exit_show_tool_tip "Missing project variable: TM_SSH_REMOTE_PATH"
fi
rsync \
-auz \
--stats \
--delete \
--exclude *.tmproj \
--exclude-from '/Users/cduruk/digg/cduruk.local/rsync-exclude.txt' \
${TM_SSH_PORT:+ --port=$TM_SSH_PORT} \
${TM_SSH_USER:+$TM_SSH_USER@}$TM_SSH_HOST:$TM_SSH_REMOTE_PATH/ \
$TM_PROJECT_DIRECTORY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment