On Wed, 14 Dec 2005, Antonio Zerbinati wrote:
> Hi All, > first of all, keep in mind that rsync already handle local (and remote) > file/dir transfer at best, IMHO rsync is the best solution, ever, for > coping files when you have shell access to. > You can have a look at here: http://rsync.samba.org/ftp/rsync/rsync.html > > just look at the details of what the --progress and --partial does. *** I agree with this:) Write some other reasons for file:// protocol in wget, maybe we can find other solution for you need of file:// than adding this support in wget. For local transfer the dd can be used too. > Saying that, wget should never be used as a rsync clone, but, a raw file:// > protocol may still be useful. Think that wget is used by a small program to > collect some file; those file can stay on web or be local, should the program > call different tool, wget for the net, and cp/rcp/rsync for local stored > file? if wget can handle both, there is no need for that. *** I think, the right solution is to write small shell script (or function) function download() { case "$1" in "http://"* | "ftp://"*) wget -c "$1";; "file://"* ) rsync -P "${1#file://}";; esac } But yes, it would have the same interface for all these protocols if you would add the file:// protocol in wget. What about to implement scp:// protocol?:) Bye. Wolf.
