Copy files with partial resume support? (Win/Cygwin)

2

Just curious if anyone knows of a tool that'll copy files, and should the file get interrupted, have it resume where it's left off the next time it's invoked.

I'm basically trying to copy something over samba using an unreliable WiFi connection. Ideally I'd like something like wget or axel that works over samba/file system. Cygwin or Windows solutions would be ideal.

Eddie Parker

Posted 2010-01-18T05:52:24.807

Reputation: 2 074

Answers

4

rsync will do this for you, over a samba share or over SSH. See man rsync on your system for the gory details. rsync is available as a Cygwin package.

Use -P or --partial for resuming an interrupted transfer.

There are lots of rsync questions already on this site; see https://superuser.com/questions/tagged/rsync for examples of how others are using it.

quack quixote

Posted 2010-01-18T05:52:24.807

Reputation: 37 382

ROBOCOPY or XCOPY with flag /Z should work too. See ROBOCOPY /? or XCOPY /? for more information. – filhit – 2015-11-05T19:00:05.067

This is a good way to go since you already have Cygwin. – nik – 2010-01-18T07:10:09.073

Neat. I didn't know rsync had a partial command. Good catch. – Eddie Parker – 2010-01-18T07:22:38.373

1

I don't think RoboCopy is ideal for this situation. RoboCopy is mostly used when backing up an active partition that has the OS on it. It is able to copy files that are locked and in use, therefore creating a complete backup even while the OS is being used. Take a look at TeraCopy, not only will it help you here but you might be pleasantly surprised at the speed increase and greater reliability on local Windows transfers.

Marcin

Posted 2010-01-18T05:52:24.807

Reputation: 3 414

1I like TeraCopy in general. It does pause and let you resume, when it finds the target disk going full for example. But, I don't think it can handle a restart of the copy if the copy instance window is closed (with a skip). So, I can't easily complete the copy 'tomorrow' for example. – nik – 2010-01-18T07:09:12.243

-1

Hrmm, just found RoboCopy. Might be worth looking into!

Eddie Parker

Posted 2010-01-18T05:52:24.807

Reputation: 2 074