LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-16-2009, 12: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.

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
 
Old 02-16-2009, 01:49 PM   #2
cojo
Member
 
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, 09: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/

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

Using RH EL 4.5

Thanks,

Gregory
 
Old 02-18-2009, 05:59 PM   #4
servat78
Member
 
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.

Debian

Last edited by servat78; 02-19-2009 at 11:33 AM.
 
  


Reply

Tags
ftp, lftp



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 12:01 PM
An X ftp client that has Move capability (into the same ftp) ? frenchn00b Linux - Software 3 12-19-2008 07:22 PM
Move FTP Accounts L1nuxbug Linux - Server 1 06-08-2007 05:46 AM
Script for file move after FTP lohrpr Linux - Newbie 2 07-27-2006 11:42 PM
FTP Error, Help needed. "Must perform authentication before identifying USER" acalvin Linux - Software 0 07-27-2003 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 AM.

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