archive - directory for WAL src - code directory src/run.py - runner src/settings.py - settings for user, password, host and database name
wal_level = hot_standby archive_mode = on archive_command = 'cp -i %p /Developer/myprogs/python/tutorials/PostgreSQL-Backup/archive/%f </dev/null'
psql mydb < dellstore2-normal-1.0.sql
pg_ctl -D /usr/local/var/postgres/ -l logfile restart
pip install psycopg2
python ./src/run.py
Also you should backup yours configuration files.