From: Tim Perdue <tim_perdue@yahoo.com>
To: Brian <signal@shreve.net>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Auto-Vacuum?
Date: Thu, 28 Jan 1999 11:10:23 -0800 (PST)
Message-ID: <19990128191023.5620.rocketmail@send101.yahoomail.com> (raw)
Thanks - I didn't know it was that easy.
What does the "dump" do? I have been just tarring the
/usr/local/pgsql/data/base/ directory and burning that onto a CD...
Do you worry about getting a fragmented Hard Disk? I would think if
there were a large number of adds/deletes you could end up with a
fragged disk.
Thanks a bunch,
Tim
---Brian <signal@shreve.net> wrote:
>
> On Thu, 28 Jan 1999, Tim Perdue wrote:
>
> > Just curious if anyone has written an vacuum shell script.
> >
>
> Just use cron:
>
> 00 01 * * * /usr/local/pgsql/bin/psql shrevenet_users -c "vacuum;"
> 01 01 * * * /usr/local/pgsql/bin/psql shrevenet_ftp -c "vacuum;"
> 02 01 * * * /usr/local/pgsql/bin/psql shrevenet_counter -c
"vacuum;"
>
> etc. Also before I vacuum, I dump each night (never can be too safe
:)
>
> 00 00 * * * /usr/local/pgsql/bin/pg_dump shrevenet_users >
/usr/local/pgsql/backups/shrevenet_users.dump
> 01 00 * * * /usr/local/pgsql/bin/pg_dump shrevenet_ftp >
/usr/local/pgsql/backups/shrevenet_ftp.dump
> 02 00 * * * /usr/local/pgsql/bin/pg_dump shrevenet_counter >
/usr/local/pgsql/backups/shrevenet_counter.dump
==
______________________________________________________
Tim Perdue
tim@perdue.net
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
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-sql@postgresql.org
Cc: tim_perdue@yahoo.com, signal@shreve.net, pgsql-sql@hub.org
Subject: Re: [SQL] Auto-Vacuum?
In-Reply-To: <19990128191023.5620.rocketmail@send101.yahoomail.com>
References: <19990128191023.5620.rocketmail@send101.yahoomail.com>
* 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