/[formed]/trunk/tools/anonym/cron.sendAnonXml.sh
ViewVC logotype

Diff of /trunk/tools/anonym/cron.sendAnonXml.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 247 by torsten, Mon Mar 3 10:22:35 2008 UTC revision 248 by torsten, Mon Mar 3 11:34:33 2008 UTC
# Line 13  DBLIST=`sudo -u postgres /usr/local/bin/ Line 13  DBLIST=`sudo -u postgres /usr/local/bin/
13  DATE=`date +"%Y-%m-%d"`  DATE=`date +"%Y-%m-%d"`
14  for DB in ${DBLIST}  for DB in ${DBLIST}
15  do  do
16      EXPORTFILE=${DATADIR}/${DB}_${DATE}.xml      EXPORTFILE=${DATADIR}/${DB}-${DATE}.xml
17      sudo -u postgres /usr/local/bin/xmlexport.py ${DB} "${DBHOST}" "${DBPORT}" > $EXPORTFILE      sudo -u postgres /usr/local/bin/xmlexport.py ${DB} "${DBHOST}" "${DBPORT}" > $EXPORTFILE
18      if [ "$?" -eq "0" ]; then      if [ "$?" -eq "0" ]; then
19              gzip -f -9 ${EXPORTFILE}              gzip -f -9 ${EXPORTFILE}

Legend:
Removed from v.247  
changed lines
  Added in v.248

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26