I have used Percona XtraBackup to create a compressed backup, but now I need to decompress the files. The instructions say I should run:
for bf in `find . -iname "*\.qp"`; do qpress -d $bf $(dirname $bf) && rm $bf; done
but this looks like it is going to search everywhere and decompress any files it finds. I only want it to only decompress the files in one specific directory and its subdirectories.
I tried running:
for bf in `find . -iname "/path/to/my/directory/*.qp"`; do qpress -d $bf $(dirname $bf) && rm $bf; done
But this gave the error:
find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-iname `/path/to/my/directory/*.qp'' will probably evaluate to false all the time on this system.
How can I do this?