copy a file and check before deleting the original
I am using my linux machine as a digital video recorder. I record the films on the local drive, because of speed and after the recording I have a postprocessing script that copies the file to my NAS. Now until now I did not include any delete original parts in my script but since the system seems to be operating ok - I would like to it now.
Apparently there are no integrity checks in cp? Of course, normally the copy goes ok, but just in case, is there another command that would check the integrity of the file like copy and verify? Alternative I could use a kind of move and verify command if one exists?
|