Go to most recent revision | Blame | Last modification | View Log | RSS feed
#!/bin/bash
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: backup_table.sh <table> <database>"
exit 1
fi
exec pg_dump -i -h localhost -p 5432 -U postgres -F p -a -D -v -f "$1.backup" -t "$1" "$2"