Continue aborted cp

It's cases like this that have taught me to use rsync from the start. However in your case, you can use rsync now. It will only copy new data across, including if cp stopped half way through a big file.

You can use it just like cp, like this:

rsync --append /where/your/copying/from /where/you/want/to/copy

In case the aborted cp was a recursive copy, you might want to resume with rsync including the option --recursive.

Example

Aborted copy command:

cp -r source-directory destination-directory

Let us assume that destination-directory already existed, so that this copy command created a directory named source-directory within destination-directory. This can be resumed via:

rsync --recursive --append source-directory destination-directory

Note that trailing slashes have a precise meaning in rsync path options.

In this case, the copy command could have gotten the argument source-directory or source-directory/, it does not make a difference. In the rsync command, however, it must be source-directory without trailing slash.


Use the -u switch, and see the cp man page.