How to automaticaly download all files in a folder via FTP?

Posted by viettechorg, 05-07-2007, 03:41 AM
Hello there, I am having trouble with moving my files to another server. So i hope you guys can help me out. i have 1 servers, 1 hosting account (no ssh), both are using different control panel and i need to move all of the media files(movies) in the hosintg account to other server since hosting account contract will expire soon. So, i am thinking of using FTP to transfer multiple files using mget command for FTP. But the thing is i will need to be there any press enter( to accept download) for every single files to be download. Which is very time consuming since i have hundred of files to move. So my question is: 1/ is there a better way to move files in this situation? 2/ or Is there a shell script that i can use to download all of the file to my server without pressing enter accepting every single file? Thanks in advance

Posted by CD Burnt, 05-07-2007, 04:32 AM
you might be able turn off the prompting. do a search for mget prompt toggle

Posted by spaethco, 05-07-2007, 04:35 AM
I'd recommend using wget for this instead. You can use wget -r ftp://user:pass@hostname/directory/* to grab all the files from a directory and all directories under it.

Posted by bear, 05-07-2007, 06:55 AM
That (wget) would require shell, wouldn't it? He said he doesn't have it. A Google search shows some possible scripted options.

Posted by spaethco, 05-07-2007, 07:01 AM
His quoted statement and the fact that he's trying to use mget with FTP would seem to indicate he does indeed have shell access somewhere.

Posted by CD Burnt, 05-07-2007, 04:07 PM
i read it as "1 server" and "1 hosting account", and he wants to move files from a standard hosting account to his server

Posted by viettechorg, 05-07-2007, 11:52 PM
Thanks guy, Yes, i have shell on the server. I think i am going to use wget to move files. Much appreciated for all comments

Posted by tuxpack, 05-08-2007, 04:52 AM
Hi, Most webhosts disable wget for security reasons..I would suggest you to curl instead.

Was dit antwoord nuttig?

 Print dit artikel

Lees ook

Having trouble blocking google spider

Posted by lhmx, 11-15-2012, 02:51 AMI'm having some trouble blocking google (and others) from...

wordpress jquery

Posted by Seeking Knowledge, 10-16-2012, 08:43 AMHi there, I'm facing a problem with few...

SVN web interface

Posted by fqaisrani, 02-21-2011, 10:17 AMI want to install SVN server on my VPS along with a web...

Hosting Related Press Releases

Posted by SoftWareRevue, 04-29-2009, 10:30 AM Post your press release for the WHT community...

Free script that hides links?

Posted by bambinou, 11-12-2012, 04:29 AMHello, I would like to know if you have ever seen a...