At work I’ve been tasked with transferring about 300 “bad” files from an old CMS over to our Windows file server over SFTP.
The problem is the files are either 0 bytes or the file name is too long to be accepted by NTFS. In either case, file transfer fails.
I have a failed transfer queue of 285 sitting in FileZilla, just unsure what course I should take.
My idea at this point is to make a temporary file server in Linux, transfer the files there, run a script to rename/populate, and then transfer to Windows. Thoughts?
the “why” actually is very important. if you want to attempt data recovery on said broken files, vs just ‘copying them to show they were copied to a bean counter.’
also, info like are the servers on the same network? is the SFTP over an http link or vpn? could even change the answer.
I second risk’s recommendation, compress to preserve and then either transfer the singular payload in one go or split into smaller chunks for transferring.
None of the files are corrupted. For reasons that came before me, several message conversations were saved as blank .txt files with the file name as the text. There are dozens of files called “hey this is so and so just wanting to let you know I did such and such.txt”
I am under the impression this is how the firm archived client communication in the past. Absolutely bonkers.
The servers are not on the same network. I’m transferring from a CMS to our local file server using sftp://url
CMS’s servers have special settings preventing me from transferring empty files (their web UI won’t let me download the files with the error “file empty”)
yup, if you have any sort of direct access to the old server, do as risk said, compress or archive the files. you could script it so they were all 1.tar, 2.tar, and then they would go through the ftp process fine and you could sort them back out via an untar or unzip or whatever command you used.
you could probably pack them all into 1 archive file also, it does not sound like it would be a size issue.