Re: Automated Backup Script Help (Linux)

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Automated Backup Script Help (Linux)
Date: 2012-03-07 19:08:23
Message-ID: 4F57B227.5040808@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/07/12 10:33 AM, Carlos Mennens wrote:
> carlos(at)db1:~/postgresql$ sh pg_backup.sh
> pg_backup.sh: 7: cd: can't cd to pg_backup.sh
> pg_backup.sh: 8: pg_backup.sh: source: not found
> pg_backup.sh: 16: [: !=: unexpected operator
> Making backup directory in 2012-03-07/
> pg_backup.sh: 54: pg_backup.sh: Bad substitution
>
> So the only thing this script is doing for me is creating an empty
> folder with the date as the name. Any idea what I'm doing wrong? I've
> attached the configuration file since this is the only thing I was
> told that needs to be modified. The contents are exactly as they are
> on my server.

whats that pg_backup.sh script look like? you're getting shell errors
on line 7 and 8 of the script.

this has nothing to do with postgresql.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Mennens 2012-03-07 19:20:59 Re: Automated Backup Script Help (Linux)
Previous Message Nicolas Grilly 2012-03-07 19:05:54 Re: Full text search ranking: ordering using index and proximiti ranking with OR queries