I have some photo files on my phone, and I am backing them up to an external drive. (Everything is mounted on a linux laptop.)I have copied the files, when I should really have mv'ed them.However, since I have done this, I would like to verify the data copied correctly for each file, and then remove the file from my phone if the file was copied without error.So what I am really looking for is a cp or mv like command which:Copies the file if it does not exist on the destinationVerifies the data between source and destination (after copying if the file did not already exist)If both files are binary identical, remove the file from the sourceI thought I might be able to do this with rsync, but I have had a look through the various delete-like options and none of them matched delete the file on the source, rather these options delete files before/after/during(?) on the destination instead.
Is there a `cp` like command for verifying data and removing files?
files;backup;file copy;verification