1
#########################################################################
2
# Test server version auto-detection
3
#########################################################################
7
# This test can only work when the xtrabackup binary autodetected by
8
# innobackupex matches the binary built for this configuration, i.e. with
9
# XB_BUILD=(xtradb51|xtradb55|xtradb56|innodb56)
12
"xtradb51" | "xtradb55" | "xtradb56" | "innodb56")
15
echo "Requires (xtradb51|xtradb55|xtradb56|innodb56) \
16
build configuration" >> $SKIPPED_REASON
17
exit $SKIPPED_EXIT_CODE
23
# Remove the explicit --ibbackup option from IB_ARGS
24
IB_ARGS="--defaults-file=$MYSQLD_VARDIR/my.cnf"
26
backup_dir=$topdir/backup
27
innobackupex --no-timestamp $backup_dir
28
vlog "Backup created in directory $backup_dir"
38
innobackupex --apply-log $backup_dir
39
vlog "Restoring MySQL datadir"
40
mkdir -p $mysql_datadir
44
innobackupex --copy-back $backup_dir