[Rt-commit] rt branch, 4.0/backup-docs, updated. rt-4.0.7-60-g1187c51

Thomas Sibley trs at bestpractical.com
Sat Nov 3 01:25:16 EDT 2012


The branch, 4.0/backup-docs has been updated
       via  1187c51aee70f173f706279fa1ae9ab5eb280c65 (commit)
      from  fa19eb5d4ab1ae2371abcc65c941742c4efb9e01 (commit)

Summary of changes:
 docs/backups.pod | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 1187c51aee70f173f706279fa1ae9ab5eb280c65
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Nov 2 22:23:03 2012 -0700

    Consolidate example mysqldump commands into a single file
    
    A single file is cleaner — especially when the sessions schema will
    rarely change — and makes restore simpler.

diff --git a/docs/backups.pod b/docs/backups.pod
index 2dab6f0..c792538 100644
--- a/docs/backups.pod
+++ b/docs/backups.pod
@@ -31,9 +31,9 @@ RT. :)
 
 =head3 MySQL
 
-    mysqldump rt4 --tables sessions --no-data > rt-`date +%Y%M%d`-sessions.sql
-    mysqldump rt4 --ignore-table rt4.sessions \
-                  --single-transaction | gzip > rt-`date +%Y%M%d`.sql.gz
+    ( mysqldump rt4 --tables sessions --no-data; \
+      mysqldump rt4 --ignore-table rt4.sessions --single-transaction ) \
+        | gzip > rt-`date +%Y%M%d`.sql.gz
 
 If you're using a MySQL version older than 4.1.2 (only supported on RT 3.8.x
 and older), you should be also pass the C<--default-character-set=binary>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list