Rev 489 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/bash############################################################################################################### But : Script permettant d'initialiser en une seule commande l'ensemble de la base de données eFlore.# Auteur : Jean-Pascal Milcent <jpm@tela-botanica.org> (translate bat file to shell script)# License : GPL v3# Création : 07 decembre 2011# Version: 0.1# 2011-12-07 - Création# $Id$############################################################################################################### compresser les fichiers en excluant les fichiers svn et les fichiers de config et frameworktar cvzf consultation.tar.gz ../ \--exclude="livraison" \--exclude=".svn" \--exclude="configurations/config.ini" \--exclude="configurations/config_papyrus.ini" \--exclude="framework.php" \--exclude="*.sh" \--exclude=".settings" \--exclude=".buildpath" \--exclude=".project"# envoyer sur telascp consultation.tar.gz root@tela-botanica.org:/home/telabotap/www/eflore-test/.# se connecter sur tela botanica en ssh et effectuer le déploiementssh root@tela-botanica.org "cd /home/telabotap/www/eflore-test/; cd consultation; tar cvzf ../backup/consultation.tar.gz .; cd ../; rm -Rf consultation; mkdir consultation; cd consultation/; tar xvzf ../consultation.tar.gz; cp ../configurations/consultation/* . -R; cp ../configurations/consultation/.htaccess . ; chown telabotap:users /home/telabotap/www/eflore-test/consultation -R; chmod 755 /home/telabotap/www/eflore-test/consultation -R; exit";echo "Done !"