Forum Moderators: phranque

Message Too Old, No Replies

Ftp

Moving files from one FTP folder to another

         

Stefan

3:12 pm on Apr 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do any of you computer whizzes know how to move files from one ftp folder to another, rather than having to upload them again? That is, moving a file in domain/ftp/pub/abc to domain/ftp/pub/xyz .

I have various enormous files available via password protected ftp folders and I have yet to figure out a way to move them from one folder to another using SmartFTP - I have to delete and upload again. Right clicking the file and then "Change folder" doesn't do it. One would think there's a way of doing it within the server.

Any tricks/tips on this would be greatly appreciated (I'm on a particularly slow dial-up line, and uploading 60 MB of files at a time takes many hours).

Thanks, Stefan

Matt Probert

3:17 pm on Apr 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you can access the server with a shell account (telnet, ssh) you can use the mv (move) command.

eg:

mv /source/* /destination

Matt

Stefan

3:19 pm on Apr 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks, Matt.

I can get in with telnet. On that command, are there only spaces between the mv and the rest, and how complete does the path need to be?

ADDED: Reading up on it now, many thanks for pointing me the right way.

Stefan

4:21 pm on Apr 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It works! I used SSH with Putty. Man, I should have fooled around with that before. Thanks again, Matt.