summaryrefslogtreecommitdiff
path: root/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sync.sh')
-rwxr-xr-xsync.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/sync.sh b/sync.sh
new file mode 100755
index 0000000..a7a5ae8
--- /dev/null
+++ b/sync.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+source xib_env
+
+sync () {
+ for i in $@; do
+ echo "syncing from $XIB_EXPORT to $i"
+ [[ $# = 0 ]] || rsync -Lta --no-perms --no-owner --no-group --delete -z -e ssh "$XIB_EXPORT/" $i
+ done;
+}
+
+sync oracle2:/srv/www/xi/html/ cheetah:/srv/www/xi/html/
+