From: | Tim Perdue <tim_perdue(at)yahoo(dot)com> |
---|---|
To: | Brian <signal(at)shreve(dot)net>, pgsql-sql(at)hub(dot)org |
Subject: | Re: [SQL] Auto-Vacuum? |
Date: | 1999-01-28 19:10:23 |
Message-ID: | 19990128191023.5620.rocketmail@send101.yahoomail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)shreve(dot)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(at)perdue(dot)net
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Douglas Nichols | 1999-01-28 20:56:21 | Character type name?? How to lower case it? |
Previous Message | Brian | 1999-01-28 19:04:29 | Re: [SQL] Auto-Vacuum? |