#!/bin/bash # user doing the load - must be superuser, and must have access to postgres db USER=xonstat # full path to the backup file BACKUPFILE=$1 psql -U $USER -h localhost postgres <