ftp

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: David Mandala
Date:  
Subject: ftp
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C184E0.4C86D4D0
Content-Type: text/plain;
    charset="iso-8859-1"


Since you have ssh installed on the computer them you most likely have scp
also installed. scp will do a recursive copy with compression so it has some
major advantages over ftp: secure, easy to use (like the command line copy
command on windows) and works every time.

On your Linux box type man scp. Also if you are doing this between two Linux
boxes check and see if rsync is installed (type man rsync) if so use it with
the "-avz -e ssh" options active.

Good Luck

Davidm


> -----Original Message-----
> From: Charlie Bullen [mailto:sw1006@swtravel.swtravel.com]
> Sent: None
> To:
> Subject: ftp
>
>
> Good Morning, I need to copy several directories complete with all
> files they contain from one computer to another using ftp.
> The location
> of the directories on computer 1 is /var/www with several
> subdirectories.
> Many of the subdirectories also have subdirectories and all contain
> multiple files. I want the stucture on computer 2 to be the
> same as on
> computer 1.
>
> I establish an ftp connection from computer 2 to computer 1
> and make the
> following entry:
>
> mget /var/www/* /var/www
>
> It seems to start the transfer and asks me if I want to transfer each
> file. I answered y. I then closed the session and got the
> following response:
>
> ftp> exit
> 221-You have transferred 0 bytes in 0 files.
> 221-Total traffic for this session was 244 bytes in 0 transfers.
> 221-Thank you for using the FTP service on webserver1.
> 221 Goodbye.
>
> to be sure I went to /var/www on computer 2 and sure enough
> nothing was
> there. Any Ideas?
>
> I could get in my car and drive over to the site where all
> these files
> reside on a win 98 box and ftp them from there to computer 2,
> but since I
> can ssh into computer 2 from home it seems like there mst be
> a way to do
> it remotley.
>
> Sad to say all of my ftp expierience has been using a windows
> client to
> ftp to a linux or unix box, no command line expierience.
>
> Thanks
>
>
> Charlie
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your
> mail doesn't post to the list quickly and you use Netscape to
> write mail.
>
> PLUG-discuss mailing list -
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


------_=_NextPart_001_01C184E0.4C86D4D0
Content-Type: text/html;
    charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: ftp</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Since you have ssh installed on the computer them you =
most likely have scp also installed. scp will do a recursive copy with =
compression so it has some major advantages over ftp: secure, easy to =
use (like the command line copy command on windows) and works every =
time.</FONT></P>

<P><FONT SIZE=3D2>On your Linux box type man scp. Also if you are doing =
this between two Linux boxes check and see if rsync is installed (type =
man rsync) if so use it with the &quot;-avz -e ssh&quot; options =
active.</FONT></P>

<P><FONT SIZE=3D2>Good Luck</FONT>
</P>

<P><FONT SIZE=3D2>Davidm</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: Charlie Bullen [<A =
HREF=3D"mailto:sw1006@swtravel.swtravel.com">mailto:sw1006@swtravel.swtr=
avel.com</A>]</FONT>
<BR><FONT SIZE=3D2>&gt; Sent: None</FONT>
<BR><FONT SIZE=3D2>&gt; To: =
</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: ftp</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Good Morning, I need to copy several =
directories complete with all </FONT>
<BR><FONT SIZE=3D2>&gt; files they contain from one computer to another =
using ftp. </FONT>
<BR><FONT SIZE=3D2>&gt; The location </FONT>
<BR><FONT SIZE=3D2>&gt; of the directories on computer 1 is /var/www =
with several </FONT>
<BR><FONT SIZE=3D2>&gt; subdirectories. </FONT>
<BR><FONT SIZE=3D2>&gt; Many of the subdirectories also have =
subdirectories and all contain </FONT>
<BR><FONT SIZE=3D2>&gt; multiple files. I want the stucture on computer =
2 to be the </FONT>
<BR><FONT SIZE=3D2>&gt; same as on </FONT>
<BR><FONT SIZE=3D2>&gt; computer 1.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I establish an ftp connection from computer 2 =
to computer 1 </FONT>
<BR><FONT SIZE=3D2>&gt; and make the </FONT>
<BR><FONT SIZE=3D2>&gt; following entry:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; mget /var/www/* /var/www</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; It seems to start the transfer and asks me if I =
want to transfer each </FONT>
<BR><FONT SIZE=3D2>&gt; file. I answered y. I then closed the session =
and got the </FONT>
<BR><FONT SIZE=3D2>&gt; following response:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; ftp&gt; exit</FONT>
<BR><FONT SIZE=3D2>&gt; 221-You have transferred 0 bytes in 0 =
files.</FONT>
<BR><FONT SIZE=3D2>&gt; 221-Total traffic for this session was 244 =
bytes in 0 transfers.</FONT>
<BR><FONT SIZE=3D2>&gt; 221-Thank you for using the FTP service on =
webserver1.</FONT>
<BR><FONT SIZE=3D2>&gt; 221 Goodbye.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; to be sure I went to /var/www on computer 2 and =
sure enough </FONT>
<BR><FONT SIZE=3D2>&gt; nothing was </FONT>
<BR><FONT SIZE=3D2>&gt; there. Any Ideas?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; I could get in my car and drive over to the =
site where all </FONT>
<BR><FONT SIZE=3D2>&gt; these files </FONT>
<BR><FONT SIZE=3D2>&gt; reside on a win 98 box and ftp them from there =
to computer 2, </FONT>
<BR><FONT SIZE=3D2>&gt; but since I </FONT>
<BR><FONT SIZE=3D2>&gt; can ssh into computer 2 from home it seems like =
there mst be </FONT>
<BR><FONT SIZE=3D2>&gt; a way to do </FONT>
<BR><FONT SIZE=3D2>&gt; it remotley. </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Sad to say all of my ftp expierience has been =
using a windows </FONT>
<BR><FONT SIZE=3D2>&gt; client to </FONT>
<BR><FONT SIZE=3D2>&gt; ftp to a linux or unix box, no command line =
expierience.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Thanks</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Charlie</FONT>
<BR><FONT SIZE=3D2>&gt; =
________________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; See <A =
HREF=3D"http://PLUG.phoenix.az.us/navigator-mail.shtml" =
TARGET=3D"_blank">http://PLUG.phoenix.az.us/navigator-mail.shtml</A> if =
your </FONT>
<BR><FONT SIZE=3D2>&gt; mail doesn't post to the list quickly and you =
use Netscape to </FONT>
<BR><FONT SIZE=3D2>&gt; write mail.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; PLUG-discuss mailing list&nbsp; -&nbsp; =
</FONT>
<BR><FONT SIZE=3D2>&gt; <A =
HREF=3D"http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss" =
TARGET=3D"_blank">http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-=
discuss</A></FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C184E0.4C86D4D0--