Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-16-2009, 01:47 PM   #1
Canis Polaris
LQ Newbie
Registered: May 2007
Posts: 15

Rep: Reputation: 0
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.

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?


Old 02-16-2009, 02:49 PM   #2
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
try this.

mv /remote/lcw/OUT/* /remote/lcw/OUT/XFRD/
Old 02-17-2009, 10:15 AM   #3
Canis Polaris
LQ Newbie
Registered: May 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks, but it didn't work.

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

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

Using RH EL 4.5


Old 02-18-2009, 06:59 PM   #4
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
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.


Last edited by servat78; 02-19-2009 at 12:33 PM.


ftp, lftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 01:01 PM
An X ftp client that has Move capability (into the same ftp) ? frenchn00b Linux - Software 3 12-19-2008 08:22 PM
Move FTP Accounts L1nuxbug Linux - Server 1 06-08-2007 06:46 AM
Script for file move after FTP lohrpr Linux - Newbie 2 07-28-2006 12:42 AM
FTP Error, Help needed. "Must perform authentication before identifying USER" acalvin Linux - Software 0 07-27-2003 02:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration