Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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