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