Re: Shell Script for Vacuum

From: Manish Kediyal <kediyal(dot)manish(at)gmail(dot)com>
To: raghu ram <raghuchennuru(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Shell Script for Vacuum
Date: 2013-07-29 08:08:11
Message-ID: CAP7rq4mCmYFp93gvMHBo1nGjZ9MsKi1Fjda0xFGT8LoSQMiyzg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks Raghu,

On Mon, Jul 29, 2013 at 1:34 PM, raghu ram <raghuchennuru(at)gmail(dot)com> wrote:

>
> On Mon, Jul 29, 2013 at 1:07 PM, Manish Kediyal <kediyal(dot)manish(at)gmail(dot)com>wrote:
>
>> Thanks Raghu,
>>
>> Is there a shell script for it, i wanna scheduled that through cron.
>>
>>
> You can create below Script for scheduling purpose:
>
> #!/bin/bash
> PGHOME=/opt/PostgreSQL/9.2/bin
> LOG=/Backup/cron-script-logs
> LOGFILE=vacuum_analyze_`date +"%Y-%m-%d-%T"`.log
>
> $PGHOME/vacuumdb -a -z -v >> $LOG/$LOGFILE 2>> $LOG/$LOGFILE
>
> Thanks & Regards
> Raghu Ram
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Asmus Reinhard 2013-07-29 13:19:30 Restore after using pg_dumpall
Previous Message raghu ram 2013-07-29 08:04:33 Re: Shell Script for Vacuum