[Rt-commit] rt branch, 4.2/restoring-from-backups, repushed
Alex Vandiver
alexmv at bestpractical.com
Wed Oct 22 12:05:55 EDT 2014
The branch 4.2/restoring-from-backups was deleted and repushed:
was 29fee32c705e15a6e45d3edc842eb879b7f8b5e9
now 89b734a09ef15694c4312d2a105b813d5b9143be
1: 29fee32 ! 1: 89b734a Document restoring from backups.
@@ -52,7 +52,7 @@
+that. Once the database and user exist, you can restore from your
+backup using:
+
-+ gunzip -c rt-2014-10-14.sql.gz | mysql -uroot -p rt4
++ gunzip -c rt-20141014.sql.gz | mysql -uroot -p rt4
+
+Changing -uroot -p as needed to access the database as a user with
+enough rights to handle creating tables.
@@ -63,7 +63,7 @@
+your backups, or if you want to update a dev server using your backups,
+this is straightforward on MySQL.
+
-+ gunzip -c rt-2014-10-14.sql.gz | mysql -uroot -p rt4
++ gunzip -c rt-20141014.sql.gz | mysql -uroot -p rt4
+
+MySQL will drop any existing tables before recreating and repopulating
+them. It will leave the database and the rt_user untouched. This is
@@ -103,7 +103,7 @@
+will create tables, insert data and configure rights for your rt_user
+user.
+
-+ gunzip -c rt-2014-10-14.sql.gz | psql rt4
++ gunzip -c rt-20141014.sql.gz | psql rt4
+
+This may need to be run as the postgres user or some other admin level
+user who can create tables.
@@ -115,15 +115,15 @@
+you will need to drop your database and recreate a fresh one to restore
+into. RT can drop and recreate the database for you using:
+
-+ rt-setup-database --action drop
-+ rt-setup-database --action create
++ /opt/rt4/sbin/rt-setup-database --action drop
++ /opt/rt4/sbin/rt-setup-database --action create
+
+Remember that this will completely destroy the existing data and create
+a fresh database. Your rt_user user will remain untouched. Once this
+is complete, you can restore from your backup which will create tables
+and insert data and configure rights for the rt_user.
+
-+ gunzip -c rt-2014-10-14.sql.gz | psql rt4
++ gunzip -c rt-20141014.sql.gz | psql rt4
+
+=back
+
More information about the rt-commit
mailing list