Project

General

Profile

« Previous | Next » 

Revision 8920

Added by Jing Tao over 9 years ago

Use the pg_dumpall command to back up all information of the database.

View differences:

src/scripts/bash/backup-metacat.sh
69 69
cp $METACATPROPERTIESPATH $DATADIR
70 70

  
71 71
# Backup postgres
72
su - postgres -c "pg_dump $DBNAME > $ARCHDIR/metacat-postgres-backup.sql"
72
su - postgres -c "pg_dumpall > $ARCHDIR/metacat-postgres-backup.sql"
73 73

  
74 74
# Backup the data files
75 75
tar czf $ARCHDIR/datafiles-backup.tgz --exclude=$ARCHROOT $DATADIR

Also available in: Unified diff