I have 1.6 million files on server A, and only about 20k of them need to get to server B. The destination, server B, is on GoDaddy shared hosting, so I'm just about limited to scp for transferring many files at once.
I'd like to generate a .txt file of those 20k+ files from an SQL query, then feed that list into scp. Are there any options to do so?
cat /proc/version
gives me Linux version 2.6.32-531.23.3.lve1.2.65.el6.x86_64 (mockbuild@koji.cloudlinux.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Tue Aug 19 10:37:27 EDT 2014
rsync
was my first thought too, but GoDaddy's got a whole lot of lockdowns on installing new software through their SSH. Yeah the file paths are currently in an SQL database but I can extract those to a text file easily.rsync -L
to copy the files to the remote server. The main downside is that you need to clean up the directory afterwards. I don't think this is a formal answer to this question, so that is why I added as comment.