Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

copy all data from ftp server

224 views
Skip to first unread message

cerr

unread,
Jan 14, 2012, 4:24:28 PM1/14/12
to
Hi,

I want to copy all the files from an ftp server and thought, I'd use
rsync but got following:

reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsync --delete -avzr
US...@ftp3.ftptoyoursite.com:/www.quaaoutlodge.com/web/content/ .
quaaou...@ftp3.ftptoyoursite.com's password:
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(174)
[Receiver=3.0.8]

So I did a
reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsh
US...@ftp3.ftptoyoursite.com /bin/true > out.dat
quaaou...@ftp3.ftptoyoursite.com's password:
and what I get is:
reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ cat out.dat
sftpsh: Command not allowed.

What does that mean exactly? How else can I duplicate all the files
and directories from the ftp?

Thanks,
roN

Paul Madarasz

unread,
Jan 14, 2012, 5:55:36 PM1/14/12
to
On Sat, 14 Jan 2012 13:24:28 -0800 (PST), cerr <ron.e...@gmail.com>
wrote, perhaps among other things:
I cheat and use the Firefox add-on, Down Them All.
--
"Growth for the sake of growth is the ideology of the cancer cell."
-- Ed Abbey

unruh

unread,
Jan 14, 2012, 6:04:07 PM1/14/12
to
On 2012-01-14, cerr <ron.e...@gmail.com> wrote:
> Hi,
>
> I want to copy all the files from an ftp server and thought, I'd use
> rsync but got following:

A) Many people who host files will regard this an an abuse and will cut
you off.
b) rsync is NOT ftp. You can use rsync ONLY if they support rsync. You
cannot use rsync on an ftp server.

>
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsync --delete -avzr
> US...@ftp3.ftptoyoursite.com:/www.quaaoutlodge.com/web/content/ .
> quaaou...@ftp3.ftptoyoursite.com's password:
> protocol version mismatch -- is your shell clean?
> (see the rsync man page for an explanation)
> rsync error: protocol incompatibility (code 2) at compat.c(174)
> [Receiver=3.0.8]
>
> So I did a
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsh
> US...@ftp3.ftptoyoursite.com /bin/true > out.dat
> quaaou...@ftp3.ftptoyoursite.com's password:
> and what I get is:
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ cat out.dat
> sftpsh: Command not allowed.
>
> What does that mean exactly? How else can I duplicate all the files
> and directories from the ftp?

Go and transfer the files one by one to your machine.


>
> Thanks,
> roN

Simon Jones

unread,
Jan 14, 2012, 6:18:55 PM1/14/12
to
Why can't you just create a backup.tar.gz, download it and uncompress it
once you have it?

--
Simon.
RLU: 222126
UIN: 8948262

John Hasler

unread,
Jan 14, 2012, 7:05:18 PM1/14/12
to
cerr writes:
> What does that mean exactly? How else can I duplicate all the files
> and directories from the ftp?

Ftp can get multiple files with the mget command. Read the man page.
You might have to write a simple script.
--
John Hasler
jha...@newsguy.com
Dancing Horse Hill
Elmwood, WI USA

Java Jive

unread,
Jan 14, 2012, 7:31:42 PM1/14/12
to
On Sat, 14 Jan 2012 23:04:07 +0000 (UTC), unruh <un...@invalid.ca>
wrote:

> On 2012-01-14, cerr <ron.e...@gmail.com> wrote:
> > Hi,
> >
> > I want to copy all the files from an ftp server and thought, I'd use
> > rsync but got following:

If you genuinely have FTP access, then use a drag'n'drop client like
Filezilla, or, IMS, gftp, which can copy directory structures
recursively.

If it's a website and you don't have FTP access, wget can sometime do
a goodish job, but sometimes, particularly where sites are heavily
scripted, will fail dramatically to get a usable 'rip'. For example,
strictly for my own private purposes with no intention of
republishing, I have twice tried to download entire sites covering
particular pieces of hardware that I own: in one case the result was
very useful and I still keep the result as 'help' files on my PC, in
the other it was a dismal failure, because the bulletin board software
was coding the pages on the fly.

> A) Many people who host files will regard this an an abuse and will cut
> you off.

Indeed, understandably enough. For that reason you sometime have to
give wget a command line option to identify itself as a browser.

> b) rsync is NOT ftp. You can use rsync ONLY if they support rsync. You
> cannot use rsync on an ftp server.

Exactly.
--
=========================================================
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html

Jasen Betts

unread,
Jan 14, 2012, 10:56:12 PM1/14/12
to
On 2012-01-14, cerr <ron.e...@gmail.com> wrote:
> Hi,
>
> I want to copy all the files from an ftp server and thought, I'd use
> rsync but got following:
>
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsync --delete -avzr
> US...@ftp3.ftptoyoursite.com:/www.quaaoutlodge.com/web/content/ .
> quaaou...@ftp3.ftptoyoursite.com's password:
> protocol version mismatch -- is your shell clean?
> (see the rsync man page for an explanation)
> rsync error: protocol incompatibility (code 2) at compat.c(174)
> [Receiver=3.0.8]
>
> So I did a
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsh US...@ftp3.ftptoyoursite.com /bin/true > out.dat
> quaaou...@ftp3.ftptoyoursite.com's password:
> and what I get is:
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ cat out.dat
> sftpsh: Command not allowed.

> What does that mean exactly?

means you don't have a "real" shell account on the other server.

> How else can I duplicate all the files
> and directories from the ftp?

open the ftp server with a network capable file manager
(eg: nautilus) and then drag'n drop.

nautilus sftp://US...@ftp3.ftptoyoursite.com

--
⚂⚃ 100% natural

--- Posted via news://freenews.netfront.net/ - Complaints to ne...@netfront.net ---

Jasen Betts

unread,
Jan 14, 2012, 11:00:49 PM1/14/12
to
On 2012-01-14, cerr <ron.e...@gmail.com> wrote:
> Hi,
>
> I want to copy all the files from an ftp server and thought, I'd use
> rsync but got following:
>
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsync --delete -avzr
> US...@ftp3.ftptoyoursite.com:/www.quaaoutlodge.com/web/content/ .
> quaaou...@ftp3.ftptoyoursite.com's password:
> protocol version mismatch -- is your shell clean?
> (see the rsync man page for an explanation)
> rsync error: protocol incompatibility (code 2) at compat.c(174)
> [Receiver=3.0.8]
>
> So I did a
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ rsh US...@ftp3.ftptoyoursite.com /bin/true > out.dat
> quaaou...@ftp3.ftptoyoursite.com's password:
> and what I get is:
> reg@reg-desktop:/opt/lampp/htdocs/Quaaoutlodge$ cat out.dat
> sftpsh: Command not allowed.

> What does that mean exactly?

sftpsh is has denied you access to the command you were trying to run
means you don't have a "real" shell account on the other server.

> How else can I duplicate all the files
> and directories from the ftp?

open the sftp server with a network capable file manager
(eg: nautilus or whatever the KDE equivalent is) and then drag 'n' drop.

Jim Diamond

unread,
Jan 15, 2012, 10:04:46 AM1/15/12
to
You might want to check out lftp's mirror command.

Jim
0 new messages