Quantcast
Channel: Admins Goodies » postgresql
Viewing all articles
Browse latest Browse all 10

backing up postgres on ec2

$
0
0

Question

Ok, I’m quite new to this server administration stuff. I have set up an ec2 instance running my website. I’m running everything on a single machine – node.js & postgres. What is the best way to backup my postgres db?

Thanks for your h

Asked by dan

Answer

One of the easiest and recommended ways is to use *pg_dump*. It makes consistent backups even if the database is being used concurrently.

Script *pg_dump* to offload dumps to S3 bucket. Setup the script to be run using crontab on a hourly basis.

Answered by CS3

Viewing all articles
Browse latest Browse all 10

Trending Articles