When moving a directory to another drive, if there are errors in the process, nothing will be deleted. I am getting this kind of errors:mv: cannot stat originaldirectory/longpath/irrelevantfile: Input/output errorI would like mv to:retry a couple of times (it may be that easy, probably that will solve nothing)delete the files that were moved successfully So that only the problematic files remain in the original folder.
Move directories despite of errors
filesystems;directory;recursive;mv;error handling