yes I speak very good english indeed

This commit is contained in:
n 2019-12-03 22:58:19 +01:00
parent 9dd0cb98f8
commit f9bedc102f
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ rm -f ${LOGFILE};
for i in `echo 'show databases;' | mysql | grep -v Database`; for i in `echo 'show databases;' | mysql | grep -v Database`;
do do
echo -n " ---> backuping ${i}..." >> ${LOGFILE} echo -n " ---> backing up ${i}..." >> ${LOGFILE}
mysqldump --add-drop-table --add-locks --create-options --disable-keys --extended-insert --single-transaction\ mysqldump --add-drop-table --add-locks --create-options --disable-keys --extended-insert --single-transaction\
--databases --lock-tables --quick --set-charset $i > ${BACKUPDIR}/$i.sql 2>> ${LOGFILE}; --databases --lock-tables --quick --set-charset $i > ${BACKUPDIR}/$i.sql 2>> ${LOGFILE};
if [ $? -eq 0 ]; if [ $? -eq 0 ];

View file

@ -12,7 +12,7 @@ cd ${BACKUPDIR}
echo "start" >> ${LOGFILE} echo "start" >> ${LOGFILE}
for i in `psql --list --tuples-only --port 6432 | grep -v template0 | grep -v template1 | cut -f 2 -d " " | sed '/^$/d' | tr "\n" " "`; for i in `psql --list --tuples-only --port 6432 | grep -v template0 | grep -v template1 | cut -f 2 -d " " | sed '/^$/d' | tr "\n" " "`;
do do
echo -n " ---> backuping ${i}..." >> ${LOGFILE} echo -n " ---> backing up ${i}..." >> ${LOGFILE}
pg_dump --port 6432 ${i} > ${i}.sql && rm -f ${i}.sql.bz2 && bzip2 ${i}.sql >> ${LOGFILE}; pg_dump --port 6432 ${i} > ${i}.sql && rm -f ${i}.sql.bz2 && bzip2 ${i}.sql >> ${LOGFILE};
if [ $? -eq 0 ]; if [ $? -eq 0 ];
then then