Hi There, when taking a backup I am getting an error that indicates the --target-dir doesnt exist “No such file or directory”, however, when I look in the location, I can see xtrabackup_backupfiles is being created and it has the contents of my /var/lib/mysql, why would this happen??
I am prompted for the password and then the console shows me that the backup is taken and ends with:
2024-05-07T16:07:46.710406+01:00 0 [Note] [MY-011825] [Xtrabackup] Transaction log of lsn (63597358) to (63597378) was copied.
2024-05-07T16:07:46.930615+01:00 0 [Note] [MY-011825] [Xtrabackup] completed OK!
-bash: --target-dir=/usr/local/backup/PerconaDB: No such file or directory
This is why. Is your password semi-colon? This ; character is telling bash (your shell) that what comes after is a different command. Effectively you have two commands: