26 lines
632 B
Bash
26 lines
632 B
Bash
#!/bin/bash
|
|
WATCH_DIR='/mnt/AllData/hacking/active-dev-repos/irrigation'
|
|
|
|
# Watch-related options
|
|
WATCH_EXCLUDE='(\.git|___jb_|\syncd|\node_modules|.yalc)'
|
|
# Whether to enable verbosity. If enabled, change events are output.
|
|
WATCH_VERBOSE=0
|
|
|
|
# SSH connection settings
|
|
# using configs from .ssh/config file
|
|
SSH_USER=sysadmin
|
|
SSH_HOST=water
|
|
|
|
# Sync options
|
|
TARGET_DIR="/opt/irrigation"
|
|
#space delimited string of exclusions
|
|
RSYNC_EXCLUDE=" \
|
|
--exclude node_modules \
|
|
--exclude build/Release/ \
|
|
--exclude deploy \
|
|
--exclude archive \
|
|
--exclude .yalc \
|
|
--exclude yalc.* \
|
|
"
|
|
RSYNC_OPTIONS="-Cra --out-format='[%t]--%n' --delete "
|