evergreen-admin:maintenance:backups
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
evergreen-admin:maintenance:backups [2008/06/28 22:47] – Improve example backup and restore commands dbs | evergreen-admin:maintenance:backups [2011/05/05 15:02] – aatre | ||
---|---|---|---|
Line 12: | Line 12: | ||
Most of the critical data for an Evergreen system -- patrons, bibliographic records, holdings, transactions, | Most of the critical data for an Evergreen system -- patrons, bibliographic records, holdings, transactions, | ||
# pg_dump -U < | # pg_dump -U < | ||
- | pg_dump -U evergreen -h localhost -f evergreen_db.backup.2008-06-15 | + | pg_dump -U evergreen -h localhost -f evergreen_db.backup evergreen |
</ | </ | ||
- | To restore the backed up database into a new database, create a new database using the '' | + | To restore the backed up database into a new database, create a new database using the '' |
- | createdb -T template0 -E UTF8 -U evergreen -h localhost | + | createdb -T template0 |
- | psql -U evergreen -h localhost -f evergreen_db.backup.2008-06-15 new_evergreen | + | createlang plperl |
+ | createlang plperlu | ||
+ | createlang plpgsql | ||
+ | psql -f / | ||
+ | psql -f / | ||
+ | psql -f / | ||
+ | |||
+ | # pg_restore | ||
+ | pg_restore | ||
</ | </ | ||
- | Note that this method of backup is only suitable for small Evergreen instances. Larger sites should consider implementing continuous archiving (also known as "log shipping" | + | Note that if using PostgreSQL 8.4 or newer, it is recommend that you use the option -j=X for parallel loads where X is the number of parallel processes. |
+ | |||
+ | Also this method of backup is only suitable for small Evergreen instances. Larger sites should consider implementing continuous archiving (also known as "log shipping" | ||
=====Customizations to Evergreen configuration files===== | =====Customizations to Evergreen configuration files===== |