Unix sub path creation and copy files

There is file A.lst A.lst b/pro/c/ab.par b/pro/tam.par b/pro/cc/lam.par ##We need to create missing folders like mentioned below in the following way and also add _bkp to the file name and then copy the files to location, as you can see folder folders c and cc are created and files are also copied##. Output b/pro/backpro/c/ab_bap.par b/pro/backpro/tam_bkp.par…