diff options
Diffstat (limited to 'lib/beam/postgres.sh')
-rwxr-xr-x | lib/beam/postgres.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/beam/postgres.sh b/lib/beam/postgres.sh index 31bf9d6..0eba767 100755 --- a/lib/beam/postgres.sh +++ b/lib/beam/postgres.sh @@ -15,6 +15,11 @@ # You should have received a copy of the GNU General Public License # along with BEAM. If not, see <http://www.gnu.org/licenses/>. +# Configuration keywords: +# +# item_type=postgres [mandatory] +# item_database=STRING [mandatory] + # postgres_check item postgres_check() { local database @@ -36,8 +41,8 @@ postgres_list() { postgres_backup() { local database - logit "backing up PostgreSQL $1" eval database=\$${1}_database + logit "backing up PostgreSQL database $database" test -z "$database" && abend 1 "${1}_database not set" if [ -z "$dry_run" ]; then su postgres -c "pg_dump $verbose $database" > $backup_snapshot_dir/$1-$week-$round-$level |