wr0ngway/rubber — pull request #151 by messick (2012-05-04 21:56:39+00:00)
Title: Need to add .pgpass file to provide replication password during pg_basebackup

The easiest way to provide the password during the "master -> slave" backup step in bootstrapping is to use a .pgpass file. It lives in the users's home directory.

The reason I ran the command as root and did a chown is because I couldn't get pg_basebackup to see the password file doing it "rsudo". Perhaps someone else more versed in Bash could get that to happen.

I also added the "-w" switch to pg_basebackup so that the bootstrap fails immediately if the required password is not provided. Otherwise, a unusable interactive "Password:" prompt is displayed. it might be unclear to the user that pg_basebackup is just waiting for something to be typed in, that cannot be typed in.