summaryrefslogtreecommitdiff
path: root/sync.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-15 17:03:28 +0100
committerdavidovski <david@davidovski.xyz>2022-05-15 17:03:28 +0100
commite5b726782e317ae4306a34d065171fd66a417186 (patch)
treed3bd2df93184daff38ea31ee593e695e40f59e38 /sync.sh
parentb273972f3fcbc84c9114d32646c2ae3e46dd1590 (diff)
removed broken bootstrap
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/
+