Revision 8934
Added by Jing Tao about 10 years ago
src/scripts/bash/restore-dumped-data-to-pg9.3.sh | ||
---|---|---|
74 | 74 |
echo "restart postgresql" |
75 | 75 |
/etc/init.d/postgresql start |
76 | 76 |
|
77 |
echo "change the groupship of $METACAT_BACKUP_DIR" |
|
78 |
chown -R :$POSTGRES_USER $METACAT_BACKUP_DIR |
|
79 |
|
|
77 | 80 |
echo "restore database" |
78 | 81 |
su - $POSTGRES_USER -c "psql -f $METACAT_BACKUP_DIR/$DECOMPRESS_DIR_NAME/$SQL_FILE postgres" |
79 | 82 |
|
Also available in: Unified diff
Added the code to change the permission of the backup file so the postgres user can read it.