docs: added restoration commands for DBs
marcink -
r941:eb62cf1f default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -11,7 +11,8
11 11
12 12 * The |repos| managed by the instance.
13 13 * The |RCE| database.
14 * Any configuration files or extensions that you've configured.
14 * Any configuration files or extensions that you've configured. In most
15 cases it's only the :file:`rhodecode.ini` file.
15 16
16 17 .. important::
17 18
@@ -54,13 +55,19
54 55 .. code-block:: bash
55 56
56 57 # For MySQL DBs
57 $ mysqldump -u <uname> -p <pass> db_name > mysql-db-backup
58 $ mysqldump -u <uname> -p <pass> rhodecode_db_name > mysql-db-backup
59 # MySQL restore command
60 $ mysql -u <uname> -p <pass> rhodecode_db_name < mysql-db-backup
58 61
59 62 # For PostgreSQL DBs
60 $ pg_dump dbname > postgresql-db-backup
63 $ PGPASSWORD=<pass> pg_dump rhodecode_db_name > postgresql-db-backup
64 # PosgreSQL restore
65 $ PGPASSWORD=<pass> psql -U <uname> -h localhost -d rhodecode_db_name -1 -f postgresql-db-backup
61 66
62 # For SQLlite
67 # For SQLite
63 68 $ sqlite3 rhodecode.db ‘.dump’ > sqlite-db-backup
69 # SQLite restore
70 $ copy sqlite-db-backup rhodecode.db
64 71
65 72
66 73 The default |RCE| SQLite database location is
Comments 0
You need to be logged in to leave comments. Login now