增量式备份
This commit is contained in:
		
							parent
							
								
									1f3d1c7467
								
							
						
					
					
						commit
						12cbb50d85
					
				| @ -25,6 +25,8 @@ echo "" | ||||
| CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS"   | awk '{print $1}') | ||||
| CURRENT_POSITION=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS" | awk '{print $2}') | ||||
| 
 | ||||
| echo current_binlog $CURRENT_BINLOG | ||||
| echo current_binPostition $CURRENT_POSITION | ||||
| # 备份增量变更到文件 | ||||
| # 如果上次备份的binlog文件名和位置为空,则进行全量备份 | ||||
| cd $backUpPath | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zhangkun9038@dingtalk.com
						zhangkun9038@dingtalk.com