Add cleanup and proper ownership setting for --copy-back/--move-back
General
Escalation
General
Escalation
Description
Hello folks,
It would be nice to have xtrabackup handle cleanup of data/redo/undo/etc along all the possible different folders where these might reside. This could be done as part of the -copy-back/{}-move-back, and ideally would be accompanied of a chown() setting the right user. Something like:
This would greatly simplify restore, as the user won't have to go find what folders need to be cleaned up, and will avoid extra steps that are easy to do for xtrabackup, which already has to get the location of those folders anyway.
Hello folks,
It would be nice to have xtrabackup handle cleanup of data/redo/undo/etc along all the possible different folders where these might reside. This could be done as part of the -copy-back/{}-move-back, and ideally would be accompanied of a chown() setting the right user. Something like:
xtrabackup --target-dir=$HOME/my_backup --copy-backup \ --cleanup-destination-directories --set-destination-owner=mysql
This would greatly simplify restore, as the user won't have to go find what folders need to be cleaned up, and will avoid extra steps that are easy to do for xtrabackup, which already has to get the location of those folders anyway.