#!/bin/bash
source $HOME/.gamerc

DBNAME_LISTS=$(psql -U postgres -t -A -F',' -c "SELECT datname FROM pg_database WHERE datname LIKE 'N1%' AND strpos(datname, '_') = 0;")

for dbname in ${DBNAME_LISTS}; do
    #echo "${dbname}"
    DBbackup ${dbname}
done
