sbin/sync/sync_live
changeset 1386 af05cd44d393
parent 1385 e2a24bb73389
child 1387 9996e11ba8e4
equal deleted inserted replaced
1385:e2a24bb73389 1386:af05cd44d393
     1 #!/usr/bin/env bash
       
     2 set -e
       
     3 if [ -d ~/tmp/tweet_live_V$1 ]; then
       
     4     rm -fr ~/tmp/tweet_live_V$1;
       
     5 fi
       
     6 
       
     7 hg archive -r V$1 ~/tmp/tweet_live_V$1
       
     8 
       
     9 #text2unix ~/tmp/tweet_live_V$1
       
    10 
       
    11 if [ -d ~/tmp/tweet_live_V$1 ]; then
       
    12     cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/tweet_live_V$1/web/ iri@www.iri.centrepompidou.fr:/home/polemictweet/
       
    13 + core
       
    14 P config.php
       
    15 P event_props/***
       
    16 P .htaccess
       
    17 P limesurvey/***
       
    18 P demo/***
       
    19 EOT
       
    20 fi
       
    21 
       
    22 if [ -d ~/tmp/tweet_live_V$1 ]; then
       
    23     echo "Deleting temp export"
       
    24     rm -fr ~/tmp/tweet_live_V$1;
       
    25 fi
       
    26 
       
    27 #ssh iri@www.iri.centrepompidou.fr sudo apache2ctl restart