I have to copy a file in a directory, to its backup directory, preserving the folder structure. Ex. The file aaa in MyFolder/Test/aaa to .MyFolder.bck/Test/aaa
I tried to use
cp --parents MyFolder/Test/aaa .MyFolder.bck;
But the result is .MyFolder.bck/MyFolder/Test/aaa and not .MyFolder.bck/Test/aaa that is the one I want.
Thank you in advance.