~akopytov/percona-xtrabackup/bug907147-1.6

« back to all changes in this revision

Viewing changes to test/t/ib_rsync.sh

  • Committer: Alexey Kopytov
  • Date: 2011-11-28 12:20:51 UTC
  • mfrom: (305.1.1 1.6)
  • Revision ID: akopytov@gmail.com-20111128122051-8g2t06tdxnxfol9e
Merge from the BP tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
. inc/common.sh
 
2
 
 
3
if ! which rsync > /dev/null 2>&1
 
4
then
 
5
    echo "Requires rsync to be installed" > $SKIPPED_REASON
 
6
    exit $SKIPPED_EXIT_CODE
 
7
fi
 
8
 
 
9
init
 
10
run_mysqld --innodb_file_per_table
 
11
load_sakila
 
12
 
 
13
innobackupex --rsync --no-timestamp $topdir/backup
 
14
 
 
15
stop_mysqld
 
16
 
 
17
run_cmd rm -r $mysql_datadir
 
18
 
 
19
innobackupex --apply-log $topdir/backup
 
20
 
 
21
run_cmd mkdir -p $mysql_datadir
 
22
 
 
23
innobackupex --copy-back $topdir/backup
 
24
 
 
25
run_mysqld
 
26
run_cmd ${MYSQL} ${MYSQL_ARGS} -e "SELECT COUNT(*) FROM actor" sakila