On Sunday 07 December 2008, Albert Hopkins wrote:
> On Sun, 2008-12-07 at 15:39 +0000, Mick wrote:

> > They are the the split files which I concatenate into the complete file.
>
> Well, unless you made another error in your OP, you are using md5sum
> incorrectly.  When you use "-c", md5sum expects a file that is a list of
> files/checksums. For example
[snip...]
> Yes, but if you are truly using "-c" then it would make sense that you
> could get a checksum error but the file be ok.

Sorry, yes I used the md5sum -c command correctly with the corresponding 
checksum file for the big_file.

> Here's how I would do it.  I'm not saying you should do it this way.
> I'd use rsync.  Rsync does file xfer has checksumming built-in.  You say
> you split because you get disconnected, right?  I'm not sure if rsync
> handles re-connects, but you can write a loop so that if rsync fails you
> continue where you left off:
>
> status=30
> until [ $status -eq 0 ] ;
> do
>     rsync --append-verify big_file server_name:/htdocs/<directory_path>/
>     status=$?
> done
>
> No splitting/concatenating and no need to checksum.

Wouldn't the server need to have rsyncd running to be able to do that?  Can I 
rsync to an ftp server?  Also, how would I pass username/passwd on the 
command line so that the upload can take place unattended?

Thank you for your replies.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to