
Many years ago I used a program named "mirror" that would copy the contents of a FTP server. I think it screen-scraped the output of the "dir" command and used that to recurse through a directory tree. Now I need such a program and can't find one. My Google searches turn up many hits about things such as creating a mirror of a server with rsync (EG a Debian mirror site). But nothing about what I want. Does anyone have any ideas? Failing that, what's a good way of recursively transferring files from one Android phone to another? While I'm sure that there are better ways of transferring files than a recursive FTP the fact that both phones already have FTP servers installed means that FTP might be the easiest option. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

Many years ago I used a program named "mirror" that would copy the contents of a FTP server. I think it screen-scraped the output of the "dir" command and used that to recurse through a directory tree.
Now I need such a program and can't find one. My Google searches turn up many hits about things such as creating a mirror of a server with rsync (EG a Debian mirror site). But nothing about what I want.
Does anyone have any ideas?
ftpfs? James

On 21 October 2014 16:47, Russell Coker <russell@coker.com.au> wrote:
Many years ago I used a program named "mirror" that would copy the contents of a FTP server. I think it screen-scraped the output of the "dir" command and used that to recurse through a directory tree.
Now I need such a program and can't find one. My Google searches turn up many hits about things such as creating a mirror of a server with rsync (EG a Debian mirror site). But nothing about what I want.
Does anyone have any ideas?
How about lftp? http://lftp.yar.ru/features.html I use that program to mirror many repos which are only available to download via FTP or http Sean

On Tue, 21 Oct 2014, Sean Crosby <richardnixonshead@gmail.com> wrote:
How about lftp? http://lftp.yar.ru/features.html
I use that program to mirror many repos which are only available to download via FTP or http
Thanks for all the suggestions, lftp solved my problem. Ftpfs sounds like too much effort. AFAIK wget and curl are only good for receiving so would only do half the job. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/

Russell Coker <russell@coker.com.au> writes:
AFAIK wget and curl are only good for receiving so would only do half the job.
Curl can PUT on at least TFTP and HTTP. I haven't tried it for FTP, because http://mywiki.wooledge.org/FtpMustDie, but I guess your android dingus has different ideas. And indeed, the second paragraph of the manpage says so: curl offers [...] FTP upload

On 21/10/14 16:47, Russell Coker wrote:
Many years ago I used a program named "mirror" that would copy the contents of a FTP server. I think it screen-scraped the output of the "dir" command and used that to recurse through a directory tree.
`wget -r ftp://foo/path/to/stuff` works well enough for my purposes. But is there any reason why you can’t use rsync instead?

2014-10-21 10:00 GMT+02:00 Jeremy Visser <jeremy@visser.name>:
On 21/10/14 16:47, Russell Coker wrote:
Many years ago I used a program named "mirror" that would copy the contents of a FTP server. I think it screen-scraped the output of the "dir" command and used that to recurse through a directory tree.
`wget -r ftp://foo/path/to/stuff` works well enough for my purposes.
But is there any reason why you can’t use rsync instead?
To use rsync there should be an ssh service running on either system (am I wrong?). Is there on android by default? And what about ftp server? Is it running by default, or have you installed an app for it? -- Mick

On Tue, 21 Oct 2014 04:58:00 PM Michele Bert wrote:
To use rsync there should be an ssh service running on either system (am I wrong?)
There is an rsyncd as part of the rsync package that runs on its own TCP port. -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC

On Tue, 21 Oct 2014 04:47:35 PM Russell Coker wrote:
Does anyone have any ideas?
wget -vmk $URL -v verbose -m mirror -k convert links to relative ones -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
participants (7)
-
Chris Samuel
-
James Harper
-
Jeremy Visser
-
Michele Bert
-
Russell Coker
-
Sean Crosby
-
trentbuck@gmail.com