I am running a shell script for taking backup of the database using Percona’s XtraBackup tool,want to filtering by list of databases in the file.
xtrabackup --backup --databases-file=~/databases_list --target-dir=/b -ubackup -p
Using server version 8.0.26
231205 15:36:08 Executing LOCK INSTANCE FOR BACKUP...
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: open files limit requested 0, set to 1048576
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = .
xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 50331648
Number of pools: 1
xtrabackup: cannot open ~/databases_list
databases_list File contents
fund
call