From a0dd086d8aaa1d120cb358ca2a1206cbec346dca Mon Sep 17 00:00:00 2001 From: sipp11 Date: Wed, 22 Jun 2016 10:41:03 +0700 Subject: [PATCH] Add sync script --- sync_to_stdb.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sync_to_stdb.sh diff --git a/sync_to_stdb.sh b/sync_to_stdb.sh new file mode 100755 index 0000000..6ca3cf5 --- /dev/null +++ b/sync_to_stdb.sh @@ -0,0 +1,9 @@ +#!/bin/sh +RUSER=sipp11 +RHOST=expert.traffy.xyz +PORT=22 +RPATH=/opt/stdb-web/stdb +LPATH=./ +rsync -avu -e "ssh -p $PORT" $LPATH $RUSER@$RHOST:$RPATH \ +--exclude=node_modules --exclude=.git \ +--exclude=*.sh --exclude=.DS_Store