Skip to content

View

Upgrade Postgresql

  • by

uninstall Postgres 9.4, install 9.3, backup the database using pg_dumpall > backup.sql, uninstall Postgres 9.3, install Postgres 9.4, restore the databases using psql -d postgres… Read More »Upgrade Postgresql

Log shell commands to syslog

export PROMPT_COMMAND=“${PROMPT_COMMAND:+$PROMPT_COMMAND ; }”‘echo $$ $USER “$(history 1)”|logger -p user.alert -t bash_history’ readonly PROMPT_COMMAND