LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to perform FTP move (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-perform-ftp-move-705112/)

Canis Polaris 02-16-2009 12:47 PM

How to perform FTP move
 
I am copying files from a remote server to my local server using lftp. After I get the files I want to move them to a sub-directory on the remote server so that I don't copy them again during subsequent copying.

When I issue the mv command using wildcard character *.*, as in:
mv /remote/lcw/OUT/*.* /remote/lcw/OUT/XFRD/
I get:
The filename, directory name, or volume label syntax is incorrect.

However,
mv /remote/lcw/OUT/filename.txt /remote/lcw/OUT/XFRD/filename.txt

works fine.

Is it possible to do a wildcard move on a remote server?

Thanks,

Gregory

cojo 02-16-2009 01:49 PM

try this.

mv /remote/lcw/OUT/* /remote/lcw/OUT/XFRD/

Canis Polaris 02-17-2009 09:15 AM

Thanks, but it didn't work.

Issued command:
mv /remote/lcw/OUT/* /remote/lcw/OUT/XFRD/

Received:
Access failed: 550 /remote/lcw/OUT/*: The filename, directory name, or volume label syntax is incorrect.

Using RH EL 4.5

Thanks,

Gregory

servat78 02-18-2009 05:59 PM

For an easy approach you might switch to a GUI-tool like gftp, for more complex or repetitive situation you are probably better served with ssh or scp called from within a shell script. With a correct ssh setup with all the authentication in place you wouldn't even need to type passwords when running your script. Check out some reasonable tutorial on ssh and scp and decide for yourself.

Debian


All times are GMT -5. The time now is 10:08 PM.