Changes between Version 32 and Version 33 of TracBackup
- Timestamp:
- Jan 30, 2017, 8:59:56 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracBackup
v32 v33 24 24 To restore an environment from a backup, stop the process running Trac, ie the Web server or [wiki:TracStandalone tracd], restore the contents of your backup (path/to/backupdir) to your [wiki:TracEnvironment project environment] directory and restart the service. 25 25 26 If you are using a database other than SQLite, you'll need to restore the database from the dump file. 27 26 28 To restore a PostgreSQL database backup, use the command: 27 29 {{{#!sh 28 psql -U <user> -d <database> -f postgresql.dump30 $ psql -U <user> -d <database> -f postgresql.dump 29 31 }}} 30 32 31 33 The `<database>` option is the same as the [TracEnvironment#DatabaseConnectionStrings database connection string] in the `[trac]` `database` option of //trac.ini//. 32 34 35 Similarly, for MySQL: 36 37 {{{#!sh 38 $ mysql -u <user> -p <database> < mysql.dump 39 }}} 40 33 41 ---- 34 42 See also: TracAdmin, TracEnvironment, TracGuide, [trac:TracMigrate TracMigrate]