Add no-web/ folder.
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 5 Jul 2011 13:10:48 +0000 (16:10 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tue, 5 Jul 2011 13:10:51 +0000 (16:10 +0300)
Folder contains sync script. Folder is denied access through htaccess.

.htaccess
no-web/sync-devel-site [new file with mode: 0755]

index f4df5de..cbdfca5 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -6,3 +6,7 @@
        Order allow,deny
        Deny from all
 </Files>
+<Files no-web>
+       Order allow,deny
+       Deny from all
+</Files>
diff --git a/no-web/sync-devel-site b/no-web/sync-devel-site
new file mode 100755 (executable)
index 0000000..4d911e4
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+RSYNC=/usr/bin/rsync
+SSH=/usr/bin/ssh
+RUSER=p2p-next
+RHOST=koala.cs.pub.ro
+OPTS="-avz --exclude /.git --exclude /.gitignore"
+
+RPATH=public_html/devel/
+LPATH=../
+$RSYNC $OPTS -e $SSH $LPATH $RUSER@$RHOST:$RPATH