Wednesday, December 21, 2011

Resuming truncated 'cp's

I'm sure this isn't too hard to do w/ dd, but let's say you've got some slow network disk mounted under /mnt/crappy_SMB_share and were 100 gigs into a 101G file when the Windows server went down, and now you want to finish off that last gig.

  cd /mnt/crappy_SMB_share
  curl -C - -O file:///original/file/location

from here.