From: | Robins Tharakan <robins(dot)tharakan(at)comodo(dot)com> |
---|---|
To: | PG-General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Incremental backup with RSYNC or something? |
Date: | 2011-11-13 13:36:41 |
Message-ID: | 4EBFC7E9.90505@comodo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> What "other methods" do you recommend? That was in fact my question.
> Do I need to install some modules?
Well depending on your PG version you could read up about the various
backup methods. I believe you'll be interested in 24.3 there when you
ask for WAL archiving. The good thing is, its useful for DBs much bigger
and especially for those that 'cant' go down for even a minute, but yes
it has its trade-offs. (Its not that bad actually, but its a call you
need to take).
http://www.postgresql.org/docs/8.4/static/backup.html
> I'm gzipping with this command (this is my backup.sh)--
>
>
> BKPFILE=/backup/pg/dbback-${DATA}.sql
> pg_dump MYDB -U MYDB_MYDB -f ${BKPFILE}
> gzip --fast ${BKPFILE}
You could club the pgdump / gzip in one step, thereby avoiding extra
writes to disk. The URL below should help you on that (pgdump dbname |
gzip > file.gz)
http://www.postgresql.org/docs/8.4/static/backup-dump.html#BACKUP-DUMP-LARGE
You could also do a
pg_dump -Fc | gzip -1 -c > dumpfile.gz
at the cost of a slightly larger (but faster backup).
--
Robins Tharakan
From | Date | Subject | |
---|---|---|---|
Next Message | Robins Tharakan | 2011-11-13 13:40:35 | Re: Incremental backup with RSYNC or something? |
Previous Message | Gregg Jaskiewicz | 2011-11-13 13:32:38 | Re: FK dissapearing |