I need to copy a large number of files to a hard disk drive over USB, but the connection to the drive will randomly fail, causing the drive to appear as though it is unplugged and immediately plugged in again. Can anyone recommend an automated method that will resume the copy from where it left off on this event? even something where I must manually tell it to continue would be acceptable, provided it knows at which point to resume. Using Linux (Linux Mint 13 Cinnamon 32 bit)
I am experiencing a similiar problem. I thought someone finding this thread might have use of my solution.
I need to move backups from one USB drive to the other. Each USB drive on its own works fine, but when I use both at the same time they will show this "disconnect / immediate reconnect" behaviour. I suppose it is an issue of the USB power supply of my notebook rather than the hard drives.
However, additionally the files I want to move are 30GB (RAR file) and 100GB (Truecrypt Container) in size respectively. The best result so far was being able to transfer a single RAR file completly before the connection breaking, but for the Truecrypt file the best I achieved was 40 GB.
My current solution: Using ddrescue. When used with a logfile, it can resume transfers. Handy feature :-)
ddrescue /sourcedrive/backups.tc /targetdrive/backups.tc /targetdrive/logfile
I will probably perform an sha512sum check afterwards though to make sure, the files have been correctly transferred.
I was doing this with cygwin under windows.
If the "connection to the drive will randomly fail" you should not be copying anything to it, regardless of the tool used you will likely run into problems.
rsync is a very good copy tool, but it not capable of performing magic.