From: | "Mitch Vincent" <mitch(at)venux(dot)net> |
---|---|
To: | "Matt Friedman" <matt(at)sprynewmedia(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pg_dump shell or php? |
Date: | 2001-02-03 00:54:02 |
Message-ID: | 014001c08d7b$cd77fae0$0200000a@windows |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
This is simple, but it's what I use to do my daily dumps (run from
crontab) -- I took out some stuff specific to my application..Replace
database with the name of the database..
#!/bin/sh
pgpath=/usr/local/pgsql/bin
homepath=/home/postgres
backup=/usr/local/pgsql/backup
today=`date "+%Y%m%d-%H%M%S"`
$pgpath/pg_dump database > $backup/database${today}dump
/bin/gzip $backup/database${today}dump
----- Original Message -----
From: "Matt Friedman" <matt(at)daart(dot)ca>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Friday, February 02, 2001 7:53 PM
Subject: pg_dump shell or php?
Any one written a shell or php script that runs pg_dump on a db say everyday
or something?
Any suggestions?
thanks,
Matt Friedman
From | Date | Subject | |
---|---|---|---|
Next Message | Alex Pilosov | 2001-02-03 01:12:52 | plpgsql rowsupdated Re: Verifying transaction success |
Previous Message | Matt Friedman | 2001-02-03 00:53:58 | pg_dump shell or php? |