Hello,
I have limited space on DB server so I’m wondering if after I do the first incremental backup I can remove the full backup (of course after I copy it to another storage) to make place and then use the first incremental to do the second incremental backup etc. I did try and It didn’t give me any error so that means it’s possible?
Also I’m using mysql in docker so DB is in /home/docker/mysql/data/, is xtrabackup able to backup such DB or do I have to do docker exec container command… ?
This is how I do the backup:
percona-xtrabackup-2.4.29-Linux-x86_64.glibc2.17/bin/xtrabackup --user root --password=“password” --port=port --socket=/var/run/mysqld/mysqld.sock --host=ip --backup --target-dir=/root/backups/base --datadir /home/docker/mysql/data/
then the incremental:
percona-xtrabackup-2.4.29-Linux-x86_64.glibc2.17/bin/xtrabackup --user root --password=“password” --port=port --socket=/var/run/mysqld/mysqld.sock --host=ip --backup --target-dir=/root/backups/inc1 --incremental-basedir=/root/backups/base
thanks for your help!
Ps : I know I’m using old version but I have no other choice at this point. By the way I changed the last MyIsam tables to innoDB as I was fearing that this version of xtrabackup was skipping old engines.