I need to copy files from directories and subdirectories. Copy files to a destination directory and preserve same source file/directory structure. For some source files and directories i get "cannot access" or "No such file or directory" and the cp get stuck. I would like to skip those files/dir with error. Is there a single command i can use for it? Or it is best to write up a bash script?
Background: I am performing recovery of a dead vm, some files are corrupted, hence having those error message.