mget command

Hi All,

I am using mget (mget server.*) through ftp... ... i dont want to overwrite the files in my localmachine if it is already exists... is it possible through ftp ?? any other optios also mos t welcome

Thnks in advance

Providing a copy of your script would certainly aid your query. And what OS are you running ??

My suggestion would be to create a temporary directory, mget the required fileset to the directory and exit the ftp session. Then update your destination directory via a script of your own means.

In Windows I'd have used robocopy, not sure if there's a similar product for Unix.

There is a setting on some FTP servers that allow duplicated filenames to be renamed with a suffix on receipt (so aaa.txt would be renamed by the FTP server to aaa.txt.1 if aaa.txt already existed in your target directory.

Look at your FTP server documentation/config files for info / clues.

BRgds

Thanks for the info jgrogan.
Never knew such a facility existed.
On HP-UX it's runique.

Hi all,

Lftp will support mv command to move file from source to destination..
But it is not supporting moving multiple files .. i tried "mv logger.log.* arch/"
It is giving no such file or directory error ...
any one have idea that how to move multiple file at a time using lftp...

thnks in advane