Re: Backup Database Question - Mailing list pgsql-general

From Carlos Mennens
Subject Re: Backup Database Question
Date
Msg-id CAAQLLO7tUzXUVDzNYaO+B=sff8jT5MZnwbY+2dbXkWH3w49Kfg@mail.gmail.com
Whole thread Raw
In response to Re: Backup Database Question  (John R Pierce <pierce@hogranch.com>)
Responses Re: Backup Database Question  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: Backup Database Question  (Raymond O'Donnell <rod@iol.ie>)
List pgsql-general
On Thu, Oct 6, 2011 at 3:12 PM, John R Pierce <pierce@hogranch.com> wrote:
>   /path/to/pg_dumpall | gzip > /path/to/pgbackup-$(date -I).sql.gz

Thanks John. I've never written a script so do I just use 'Vim' to
open a new file and just paste the following line?

#!/bin/bash
/usr/bin/pg_dumpall | gzip > /var/db_backup/pg_backup-$(date -I).sql.gz

Is that all I need to do or is there more steps / data involved?

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Backup Database Question
Next
From: Scott Marlowe
Date:
Subject: Re: Backup Database Question