Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to move some big file from harddrive to a removable drive. I am using mv.

However sometimes for some other reason, the operation might fail in the middle of running. Is a way that can resume the cut-and-paste operation from where was left last time?

share|improve this question

migrated from Sep 27 '10 at 11:48

This question came from our site for professional and enthusiast programmers.

How big is the file? What operating system are you using? OS X? Linux? What are the reasons that the move operation fails? – dtlussier Sep 27 '10 at 14:59
It fails because the transfer causes too much heat to the CPU in my old laptop. The file is around 1.1G. Linux (Ubuntu). – Tim Sep 27 '10 at 15:33
up vote 4 down vote accepted

Copy is easy. Use rsync --partial instead. Don't think there's a solution for a move though.

share|improve this answer
Do the copy then a remove after it is successful to simulate a move! – Buggabill Sep 25 '10 at 19:23
can rsync --partial work for what was left by "cp" or "mv"? – Tim Sep 25 '10 at 19:25
It won't recopy files that have been completely copied, but it will only work on partial files that it has handled itself previously. – Ignacio Vazquez-Abrams Sep 25 '10 at 19:27
Another question, if a operation by mv fail, will the source file still be the same as before? – Tim Sep 25 '10 at 19:28
mv won't remove anything until it feels that the copy operation has been successful. – Ignacio Vazquez-Abrams Sep 25 '10 at 19:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .