PostgreSQL La base de donnees la plus sophistiquee au monde.

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
admin:maj_infra_2014_04 [2014/04/12 11:49] rjujuadmin:maj_infra_2014_04 [2014/05/01 11:41] (Version actuelle) rjuju
Ligne 216: Ligne 216:
 SRVDEST="tantor.postgresql.fr" SRVDEST="tantor.postgresql.fr"
 VERSION="9.3" VERSION="9.3"
-PORT=5432 
 INST="main" INST="main"
 SNAPNAME="snapshot_$(date '+%Y_%m_%d_%H_%M_%S')" SNAPNAME="snapshot_$(date '+%Y_%m_%d_%H_%M_%S')"
Ligne 224: Ligne 223:
 rc=0 rc=0
  
-psql -${PORT} -c "SELECT pg_start_backup('${SNAPNAME}')"+psql --cluster ${VERSION}/${INST} -c "SELECT pg_start_backup('${SNAPNAME}')"
 if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
     echo "Unable to start backup !"     echo "Unable to start backup !"
Ligne 236: Ligne 235:
 fi fi
  
-psql -${PORT} -c "SELECT pg_stop_backup()"+psql --cluster ${VERSION}/${INST} -c "SELECT pg_stop_backup()"
 if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
     echo "Unable to stop backup !"     echo "Unable to stop backup !"
Ligne 251: Ligne 250:
 #!/bin/bash #!/bin/bash
 SRVDEST="celeste.postgresql.fr" SRVDEST="celeste.postgresql.fr"
-VERSION="9.3" 
-PORT=5432 
 INST="main" INST="main"
 SNAPNAME="snapshot_$(date '+%Y_%m_%d_%H_%M_%S')" SNAPNAME="snapshot_$(date '+%Y_%m_%d_%H_%M_%S')"
Ligne 260: Ligne 257:
 rc=0 rc=0
  
-psql -${PORT} -c "SELECT pg_start_backup('${SNAPNAME}')"+psql --cluster ${VERSION}/${INST} -c "SELECT pg_start_backup('${SNAPNAME}')"
 if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
     echo "Unable to start backup !"     echo "Unable to start backup !"
Ligne 272: Ligne 269:
 fi fi
  
-psql -${PORT} -c "SELECT pg_stop_backup()"+psql --cluster ${VERSION}/${INST} -c "SELECT pg_stop_backup()"
 if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
     echo "Unable to stop backup !"     echo "Unable to stop backup !"
Ligne 296: Ligne 293:
 ==== pgBadger + pgCluu ==== ==== pgBadger + pgCluu ====
  
-  * Installation de sysstat+  * <del>Installation de sysstat</del>
  
   sudo apt-get install sysstat   sudo apt-get install sysstat
 
admin/maj_infra_2014_04.1397296196.txt.gz · Dernière modification : 2014/04/12 11:49 de rjuju