MySQL Cluster Tutorial - cdn.oreillystatic.com
MySQL Cluster Tutorial - cdn.oreillystatic.com
MySQL Cluster Tutorial - cdn.oreillystatic.com
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Restoring the data<br />
Similar to restoring meta data, we can restore the records. This time you’ll need to it for<br />
each data node, or you will end up with half the data.<br />
shell> ndb_restore -r -b 2 -n 3 /path/to/BACKUP-2/<br />
shell> ndb_restore -r -b 2 -n 4 /path/to/BACKUP-2/<br />
-m = restore meta<br />
-r = restore records<br />
-b = backup ID<br />
-n = node ID<br />
ndb_restore can do more<br />
There are quite a few options for ndb_restore. For example --print-meta and<br />
--print-data allow you to get the table and records information out of a backup without<br />
actually restoring it.<br />
You can also selective restore using --include-* and --exclude-* options.<br />
Check the full list using ndb_restore --help.<br />
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. 38/81