> I would like to create an automize ftp script to get daily > data.
> I would like to create an automize ftp script to get daily > data.
( echo user anonymous ydhallui@elora.math.uwaterloo.ca echo cd someDir echo get someFile echo bye ) | ftp -vin someServer
status Show the current status of ftp.
sunique Toggle storing of files on remote machine under unique file names. Default value is off.
Newsgroups: comp.os.linux.misc
> Hello Is there any ftp tools like WSFTP on windows > platform such that you can download the whole directory.
ncftp is a very nice package that overcomes all of the limitations of ftp. It can do recursive downloads, has bookmarks, remembers your username and passwords if you want it to, has filename and dirname completion with the TAB key and so on.
It doesn't have the graphical user interface of WSFTP, but this is a good thing.
John Hunter
ncftp, or if you really like how wsftp looks, try "wxftp." It's interface is as close as you can expect to wsftp.
John
If you are looking for a GUI tool to do that, there are various ftp clients that work like WS_FTP, from the old filerunner (fr) if you install it, to others like gftp in gnome. Not sure if there is something KDE specifc. Or there is midnight commander (mc) for the console, besides the other console tools mentioned.
Although, I did not have much luck trying to recursively copy directories with ncftp if the subdirectories did not already exist on the destination (it would just create a filename of an empty file instead of a subdir).
David Efflandt
I use gftp, it comes with gnome, and is very similar to wsftp, actually it's better. (wsftp is my favorite ftp client for windows).
Paul Oliver
documented on: 2000.10.25
cd ~/save ncftpget ftp://qindf/db2.mdb
ncftpget -d stdout bowser.nintendo.co.jp . /pub/README
— ncftpget [options] remote-host local-directory remote-files…
-d: diagnose
ncftpget -R ftp.ncftp.com /tmp /pub/ncftp
-v/-V Do (do not) use progress meters. The default is to use progress meters if the output stream is a TTY.
-R Recursive mode; copy whole directory trees.
ncftpget uses TAR whenever possible since this usually preserves symbolic links and file permissions. TAR mode can also result in faster transfers for directories containing many small files, since a single data connection can be used rather than an FTP data connection for each small file. The downside to using TAR is that it forces downloading of the whole directory, even if you had previously downloaded a portion of it earlier, so you may want to use the -T option if you want to resume downloading of a directory.
ncftpput -v localhost /incoming ~/s/docs/file.sample.bin
ncftpput -V upload.sourceforge.net /incoming foo-2.0.tar.gz
ncftpput -d stdout -V cdr /c/FtpRoot checksum.xws.crc
ncftpput -v -R -m -f $lgf . /tmp/tcl
ncftpput -V -R -m cdr /c/FtpRoot ssbooks
-d XX Use the file XX for debug logging.
-v/-V Do (do not) use progress meters. The default is to use progress meters if the output stream is a TTY.
-R Recursive mode; copy whole directory trees.
-m Attempt to make the remote destination directory before copying.
-S XX Upload into temporary files suffixed by XX.
-z/-Z Do (do not) try to resume transfers. The default is to not try to resume (-Z).
-y Try using "SITE UTIME" to preserve timestamps on remote host. Not many remote FTP servers support this, so it may not work.
The following are test results for NcFTPPut 3.0.3. The results are the same for NcFTPPut 3.1.1.
-R Recursive mode; copy whole directory trees.
$ ncftpput -f ~/s/docs/t_d_/tdat/.vectors.lg -d stdout public_html /www/html/docs/expresso/expresso [..] Cmd: FEAT 500: FEAT not understood. Cmd: CWD public_html 250: CWD command successful. /www/html/docs/expresso/expresso is a directory. ncftpput /www/html/docs/expresso/expresso: could not open file. Cmd: QUIT 221: Goodbye.
$ ncftpput -f ~/s/docs/t_d_/tdat/.vectors.lg -d stdout public_html/expresso /www/html/docs/expresso/expresso/*
[..] 250: CWD command successful. /www/html/docs/expresso/expresso/BasicInfo is a directory. ncftpput /www/html/docs/expresso/expresso/BasicInfo: could not open file. /www/html/docs/expresso/expresso/ExpressoADFramework is a directory. ncftpput /www/html/docs/expresso/expresso/ExpressoADFramework: could not open file. /www/html/docs/expresso/expresso/ExpressoApplicationsappwriter is a directory. ncftpput /www/html/docs/expresso/expresso/ExpressoApplicationsappwriter: could not open file. /www/html/docs/expresso/expresso/ExpressoApplicationsothers is a directory. ncftpput /www/html/docs/expresso/expresso/ExpressoApplicationsothers: could not open file.
$ ncftpput -f ~/s/docs/t_d_/tdat/.vectors.lg -d stdout public_html/expresso ./ [..] 250: CWD command successful. ./ is a directory. ncftpput ./: could not open file. Cmd: QUIT 221: Goodbye.
Newsgroups: comp.os.linux.networking Date: Tue, 1 Apr 2003 13:19:24 +0000 (UTC)
> Is there any command line command that support continuous upload? > I.e., continuous to upload where it was stopped. > > I looked in the ncftp man page but am not sure if it supports so. I > can't risk my already-over-9-hour uploading.
When I was still on dialup, I resumed downloaded of an iso with ncftp over a period of 5 nights (about 40 hrs total). Newer versions ask by default what to do if the destination file exists (overwrite, resume or cancel) From 'man ncftp':
NcFTP 3 now prompts the user by default when you try to download a file that already exists locally, or upload a file that already exists remotely. Older versions of the program automatically guessed whether to overwrite the existing file or attempt to resume where it left off, but sometimes the program would guess wrong. If you would prefer that the program always guess which action to take, set this variable to yes, otherwise, leave it set to no and the program will prompt you for which action to take.
David Efflandt
The ncftpput program does not try to “resume” uploads by default. If you do want to resume an upload, use the “-z” flag.