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?

link|improve this question

57% accept rate
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
feedback

migrated from stackoverflow.com Sep 27 '10 at 11:48

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

1 Answer

up vote 4 down vote accepted

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

link|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
1  
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
1  
mv won't remove anything until it feels that the copy operation has been successful. – Ignacio Vazquez-Abrams Sep 25 '10 at 19:28
show 4 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.