~hrvojem/percona-xtrabackup/new-theme-1.6

« back to all changes in this revision

Viewing changes to doc/source/innobackupex/restoring_a_backup_ibk.rst

  • Committer: Hrvoje Matijakovic
  • Date: 2012-02-16 17:05:16 UTC
  • Revision ID: hrvoje.matijakovic@percona.com-20120216170516-s3b0nk7x6av63b7t
imported the sphinx docs from the current trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=============================================
 
2
 Restoring a Full Backup with |innobackupex|
 
3
=============================================
 
4
 
 
5
For convenience, |innobackupex| has a :option:`--copy-back` option, which performs the restoration of a backup to the server's :term:`datadir` ::
 
6
 
 
7
  $ innobackupex --copy-back /path/to/BACKUP-DIR
 
8
 
 
9
It will copy all the data-related files back to the server's :term:`datadir`, determined by the :file:`backup-my.cnf` configuration file in the directory. You should check the last line of the output for a success message::
 
10
 
 
11
  innobackupex: Finished copying back files.
 
12
 
 
13
  111225 01:08:13  innobackupex: completed OK!
 
14
 
 
15
 
 
16
As files’ attributes will be preserved, in most cases you will need to change the files’ ownership to ``mysql`` before starting the database server, as they will be owned by the user who created the backup::
 
17
 
 
18
  $ chown -R mysql:mysql /var/lib/mysql
 
19
 
 
20
Also note that all of these operations will be done as the user calling |innobackupex|, you will need write permissions on the server's :term:`datadir`.