mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 18:36:12 +01:00 
			
		
		
		
	 1c55b845e0
			
		
	
	
	1c55b845e0
	
	
	
		
			
			Added support to BACKUP STAGE to maria-backup
This is a port of the code from ES 10.6
See MDEV-5336 for backup stages description.
The following old options are not supported by the new code:
--rsync             ; This is because rsync will not work on tables
                      that are in used.
--no-backup-locks   ; This is disabled as mariadb-backup will always
                      use backup locks for better performance.
		
	
			
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			864 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			864 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #--source include/innodb_page_size.inc
 | |
| 
 | |
| --disable_warnings
 | |
| DROP TABLE IF EXISTS mysql.mariadb_backup_history;
 | |
| --enable_warnings
 | |
| 
 | |
| let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
 | |
| --disable_result_log
 | |
| exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --history=foo --backup --parallel=10 --target-dir=$targetdir;
 | |
| --enable_result_log
 | |
| rmdir $targetdir;
 | |
| 
 | |
| SHOW CREATE TABLE mysql.mariadb_backup_history;
 | |
| SELECT COUNT(*) FROM mysql.mariadb_backup_history;
 | |
| SELECT name FROM mysql.mariadb_backup_history;
 | |
| 
 | |
| let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
 | |
| --disable_result_log
 | |
| exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --history --backup --target-dir=$targetdir;
 | |
| --enable_result_log
 | |
| rmdir $targetdir;
 | |
| 
 | |
| SELECT COUNT(*) FROM mysql.mariadb_backup_history;
 | |
| --sorted_result
 | |
| SELECT name FROM mysql.mariadb_backup_history;
 | |
| 
 | |
| DROP TABLE mysql.mariadb_backup_history;
 |