Comments - Full Backup and Restore with Mariabackup

3 years, 3 months ago Testing User A Test

Does the prepare step touch all the files inside the backup directory, not the files on /var/lib/mysql directory? If we perform 'prepare' right after backup, it helps to save the time to 'prepare' the backup files for restoration. Is it the reason why we should perform 'prepare' immediately right after the backup? If the 'prepare' time is insignificant, is it no difference whether we do the 'prepare' step right after the backup, or just before db restoration?

 
3 years, 3 months ago Vladislav Vaintroub

it ony touched the backup directory. Note, that you can't always do the prepare on the same machine, apparently when you do not backup into a directory. You can backup to "stream" , i.e stdout, and ship that stream to another box, or elsewhere, to a cloud. Second, maybe you do not want to run an IO and CPU-expensive "prepare", on the box where a server is running.

Having said that, yes, maybe it is more convenient to run prepare on the same box right after backup, if the points above are not a concern.

 
3 years, 3 months ago Faustin Lammler

Please read carefully the documentation and take a moment to look the Oli's mariabackup presentation. You will find all the answer you are looking for.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.