mariabackup --backup --target-dir=증분_백업_경로 --incremental-basedir=풀_백업_경로 --user='아이디' --password='비밀번호' --no-lock
증분 백업을 하려면 full backup을 먼저 해야 한다.
증분 백업의 상황에 따라 값이 달라진다.
첫 번째 증분 백업
두 번째 부터 증분 백업
backup_type = full-backuped
from_lsn = 0
to_lsn = 1689382
last_lsn = 1689391
backup_type = incremental
from_lsn = 1689382
to_lsn = 1700827
last_lsn = 1700836
full backup은 처음이니까 from_lsn은 0이고 to_lsn은 백업이 마지막 종료된 위치 이다.
incremental에 from_lsn은 당연히 이전 to_lsn인 1689382로 적혀있고 to_lsn은 백업의 마지막 위치이다.