From: Sanjay Arora <skpobox@gawab.com>
To: Kaolin Fire <cognosco@tentacle.net>
Cc: pgsql-admin@postgresql.org
Cc: research_2004@yahoo.com
Subject: Re: Create Linux Script for PostgreSQL database backup
Date: 03 Sep 2004 20:58:29 +0530
Message-ID: <1094225309.3105.33.camel@Sewak.Asr.Lan> (raw)
In-Reply-To: <4136C42B.50303@tentacle.net>
References: <20040901132055.17178.qmail@web61008.mail.yahoo.com>
<200409020744.03552.tech@glastonburymusic.org.uk>
<4136C42B.50303@tentacle.net>
On Thu, 2004-09-02 at 12:26, Kaolin Fire wrote:
>
> echo "1 3 * * * postgres /usr/local/bin/pg_dumpall >
> ~/backup.sql" >> /etc/crontab
>
> note to remember the two >>'s so you don't obliterate your crontab like
> I just did.
>
Would someone tell of a modification to this script that would:
1. create a file/directory based upon the date & time to create the
backup file in. ;-) [some people are shameless about asking about
pre-cooked food]
2. If a file DB has large objects..to dump it seperately...or does one
have to enumerate each of the databases individually & dump them, in
this case.
3. In case, databases have to be dumped seperately in the above...any
script to find out existing databases, if they have lo and dump
accordingly.
4. Take care that each file size does not exceed OS file limits.
You must always help the shameless & the lazy....for they are Gods own
people ;-)
With best regards.
Sanjay.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: skpobox@gawab.com, cognosco@tentacle.net, research_2004@yahoo.com
Subject: Re: Create Linux Script for PostgreSQL database backup
In-Reply-To: <1094225309.3105.33.camel@Sewak.Asr.Lan>
References: <20040901132055.17178.qmail@web61008.mail.yahoo.com> <200409020744.03552.tech@glastonburymusic.org.uk> <4136C42B.50303@tentacle.net> <1094225309.3105.33.camel@Sewak.Asr.Lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox