Edgewall Software

Changes between Version 32 and Version 33 of TracBackup


Ignore:
Timestamp:
Jan 30, 2017, 8:59:56 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Add info for MySQL.

Legend:

Unmodified
Added
Removed
Modified
  • TracBackup

    v32 v33  
    2424To 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.
    2525
     26If you are using a database other than SQLite, you'll need to restore the database from the dump file.
     27
    2628To restore a PostgreSQL database backup, use the command:
    2729{{{#!sh
    28 psql -U <user> -d <database> -f postgresql.dump
     30$ psql -U <user> -d <database> -f postgresql.dump
    2931}}}
    3032
    3133The `<database>` option is the same as the [TracEnvironment#DatabaseConnectionStrings database connection string] in the `[trac]` `database` option of //trac.ini//.
    3234
     35Similarly, for MySQL:
     36
     37{{{#!sh
     38$ mysql -u <user> -p <database> < mysql.dump
     39}}}
     40
    3341----
    3442See also: TracAdmin, TracEnvironment, TracGuide, [trac:TracMigrate TracMigrate]