File Transfer - Ascii vs Binary
Posted on 2000-02-10
I am a setting up a new web server to replace the one we have now. The current webserver is windows NT and the new one is Linux. I need a way to transfer the files from the NT server to the new Linux server in a way that treats .txt and .html files as ascii and the .gif and .jpg files as binary. I wanted to find a tool that could probe a file before downloading it and determine what mode is best for that file. We are talking about 12G of data spread across about 1,200 user accounts. I tried using smbclient, but that does only binary transfers. The ncftpget does have ascii options, but it doesn't know how to autodetect the filetype on the fly as far as I can tell. If worse comes worse, I'll just do the whole thing in binary since most the text files look fine when displayed on a web browser even though they are not absolutely correct. When I edit text files that I downloaded in binary mode from the NT server with vi, it has those ^M characters on the end of each line. That is what I'm trying to avoid.