If you want a consistent database (you *REALLY* do), pg_dump is the correct tool. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@xxxxxxxxxx US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106 From: <pgsql-general-owner@xxxxxxxxxxxxxx> on behalf of Ron Johnson <ron.l.johnson@xxxxxxx> Hi, /usr/bin/psql -U postgres -c "SELECT pg_start_backup('Incrementalbackup',true);" cp -r /var/lib/pgsql/data/* $dumpdir/data/ /usr/bin/psql -U postgres template1 -c "SELECT pg_stop_backup();"
-- World Peace Through Nuclear Pacification |