--databases
显而易见,此参数就是指定要备份的数据库,不指定该参数默认备份所有数据库,包括mysql、performance_schema库。但需要注意,此参数在备份时除了备份指定的数据库,还会备份其它数据库的数据文件(只备份数据文件)。指定的库会备份数据文件、.frm文件和db.opt文件。如:
innobackupex --user=root --password=123456 --databases=lmis /tmp
ll /tmp/2015-08-17_10-03-19
-rw-r--r--. 1 root root 359 Aug 17 10:03 backup-my.cnf
drwx------. 2 root root 4096 Aug 17 10:03 bbp
-rw-r-----. 1 root root 146800640 Aug 17 10:03 ibdata1
drwx------. 2 root root 4096 Aug 17 10:03 lmis
drwx------. 2 root root 4096 Aug 17 10:03 mtms
drwx------. 2 root root 4096 Aug 17 10:03 mysql
drwx------. 2 root root 4096 Aug 17 10:03 test
-rw-r--r--. 1 root root 13 Aug 17 10:03 xtrabackup_binary
-rw-r--r--. 1 root root 23 Aug 17 10:03 xtrabackup_binlog_info
-rw-r-----. 1 root root 97 Aug 17 10:03 xtrabackup_checkpoints
-rw-r-----. 1 root root 2560 Aug 17 10:03 xtrabackup_logfile
ll /tmp/2015-08-17_10-03-19/lmis/
-rw-r-----. 1 root root 61 Aug 17 10:03 db.opt
-rw-r-----. 1 root root 8918 Aug 17 10:03 md_goods_type.frm
-rw-r-----. 1 root root 98304 Aug 17 10:03 md_goods_type.ibd
-rw-r-----. 1 root root 14557 Aug 17 10:03 md_product.frm
-rw-r-----. 1 root root 62914560 Aug 17 10:03 md_product.ibd
ll /tmp/2015-08-17_10-03-19/mtms
-rw-r-----. 1 root root 114688 Aug 17 10:03 crm_branch.ibd
-rw-r-----. 1 root root 114688 Aug 17 10:03 crm_complain_reason.ibd
-rw-r-----. 1 root root 131072 Aug 17 10:03 crm_message.ibd
-rw-r-----. 1 root root 98304 Aug 17 10:03 crm_order_kv.ibd
-rw-r-----. 1 root root 98304 Aug 17 10:03 crm_order_type_tree.ibd
-rw-r-----. 1 root root 491520 Aug 17 10:03 tms_carrier.ibd
-rw-r-----. 1 root root 13631488 Aug 17 10:03 tms_driver.ibd
-rw-r-----. 1 root root 114688 Aug 17 10:03 tms_leg_his.ibd
-rw-r-----. 1 root root 425984 Aug 17 10:03 tms_manager.ibd
-rw-r-----. 1 root root 46137344 Aug 17 10:03 tms_manager_platform.ibd
-rw-r-----. 1 root root 180224 Aug 17 10:03 tms_platform.ibd