Received: from trends.net (root@clio.trends.ca [209.47.148.2]) by hub.org (8.9.2/8.9.1) with ESMTP id OAA91788 for ; Thu, 28 Jan 1999 14:30:01 -0500 (EST) (envelope-from tim_perdue@yahoo.com) Received: from send101.yahoomail.com (send101.yahoomail.com [205.180.60.87]) by trends.net (8.8.8/8.8.8) with SMTP id OAA13304 for ; Thu, 28 Jan 1999 14:29:56 -0500 (EST) Message-ID: <19990128191023.5620.rocketmail@send101.yahoomail.com> Received: from [204.167.169.69] by send101.yahoomail.com; Thu, 28 Jan 1999 11:10:23 PST Date: Thu, 28 Jan 1999 11:10:23 -0800 (PST) From: Tim Perdue Reply-To: tim@dmcity.net Subject: Re: [SQL] Auto-Vacuum? To: Brian , pgsql-sql@hub.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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