I am pretty new to TurnKey. I have discovered the use of hook scripts for doing backup/restore procedures.
I am using Percona DB server on a TK Core instance and I have created a pre-backup hook script which uses innobackupex utility (part of Percona) to backup all the databases. However, when running tklbam-backup, the hook script runs, creates the backup file, but the file is not included in the actual backup.
Running another tklbam-backup script will include the old backup file, but again, the one created with the second backup hook script will not be included.
Does anybody knows how can I make the tklbam-backup to include the archive file created with the pre-backup hook script in the same backup of the system ?
I was thinking to this as a workaround : rename /usr/bin/tklbam-backup to something else. Create a new file called : /usr/bin/tklbam-backup, where I will put first the contents of the pre-backup hook script and then run the renamed tklbam-backup script.
Please let me know if there is any other way to accomplish this.