public
Description: The watchdog project.
Homepage: http://watchdog.net/
Clone URL: git://github.com/aaronsw/watchdog.git
Click here to lend your support to: watchdog and make a donation at www.pledgie.com !
watchdog / restore_usertables.sh
100755 10 lines (7 sloc) 0.198 kb
1
2
3
4
5
6
7
8
9
10
#/bin/bash
 
database_name=$1
usersdump_file=$2
 
pg_restore $usersdump_file -d $database_name
 
if [ $? = 0 ]; then
echo Restored user tables of database $database_name from $usersdump_file...
fi