Show More
@@ -11,7 +11,8 b' following parts of the system at the sam' | |||||
11 |
|
11 | |||
12 | * The |repos| managed by the instance. |
|
12 | * The |repos| managed by the instance. | |
13 | * The |RCE| database. |
|
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 | .. important:: |
|
17 | .. important:: | |
17 |
|
18 | |||
@@ -54,13 +55,19 b' backup location:' | |||||
54 | .. code-block:: bash |
|
55 | .. code-block:: bash | |
55 |
|
56 | |||
56 | # For MySQL DBs |
|
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 | # For PostgreSQL DBs |
|
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 SQL |
|
67 | # For SQLite | |
63 | $ sqlite3 rhodecode.db ‘.dump’ > sqlite-db-backup |
|
68 | $ sqlite3 rhodecode.db ‘.dump’ > sqlite-db-backup | |
|
69 | # SQLite restore | |||
|
70 | $ copy sqlite-db-backup rhodecode.db | |||
64 |
|
71 | |||
65 |
|
72 | |||
66 | The default |RCE| SQLite database location is |
|
73 | The default |RCE| SQLite database location is |
General Comments 0
You need to be logged in to leave comments.
Login now