Return-Path: <belmonte@MIT.EDU>
Received: from pacific-carrier-annex.mit.edu by po11.mit.edu (8.9.2/4.7) id KAA01392; Fri, 30 Nov 2001 10:01:38 -0500 (EST)
Received: from mattababy.mit.edu (SPRING-STEEL.MIT.EDU [18.54.0.47])
	by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id JAA06615;
	Fri, 30 Nov 2001 09:57:21 -0500 (EST)
Received: (from root@localhost)
	by mattababy.mit.edu (8.9.1/8.8.8-ajr) id JAA07591;
	Fri, 30 Nov 2001 09:58:08 -0500 (EST)
Date: Fri, 30 Nov 2001 09:58:08 -0500 (EST)
Message-Id: <200111301458.JAA07591@mattababy.mit.edu>
From: belmonte@MIT.EDU (Matthew Belmonte)
To: lhhong@MIT.EDU (Lily Hong)
Subject: Re: ftp question?
Reply-To: sipb@MIT.EDU
Cc: sipb@MIT.EDU

If you're running some variant of UNIX on the computer onto which you want to
transfer the files, go to the directory whose contents you want to archive and
then run the following commands:

umask 066
tar -cf /var/tmp/lhhong.tar * .??*
gzip /var/tmp/lhhong.tar

This will create a file /var/tmp/lhhong.tar.gz which you can then transfer to
your machine and unpack using the following commands:

gzcat lhhong.tar.gz | tar -xvf -


If you're running Windows on the computer onto which you want to transfer the
files, it's probably easiest to use zip instead of tar and gzip.  Again, go to
the directory whose contents you want to archive, then run the following
commands:

umask 066
zip -r /var/tmp/lhhong .

This will create a file /var/tmp/lhhong.zip which you can then transfer to your
machine and unpack using Winzip or PKZIP.


Make sure that you don't archive your top-level directory; if you do this then
the archiver will try to include your OldFiles directory in the archive, and
bad things may happen.  If your top-level directory contains files that you
want to save, move them into a subdirectory, then archive in that subdirectory.


To transfer the file, you can use an ftp client as you suggest -- however, be
aware that the standard ftp protocol does not encrypt any of the data that is
being transferred, including your password.  If you'd like to transfer the
files securely, and without risking someone seeing your password, you can use
scp on a UNIX system (scp hostname.mit.edu:/var/tmp/lhhong.tar.gz .), or an
SSH client such as WinSCP on a Windows system (see
"http://web.mit.edu/acs/FAQ/remote_access/filetransfer.html" for more
information).

In either case, since the directions that I've given you create the archive
file in /var/tmp on the local machine, make sure that you ftp or scp to the
same dialup server on which you created the archive -- for instance, ftp to
buzzword-bingo.mit.edu or no-knife.mit.edu or whatever, instead of to
athena.dialup.mit.edu.

After you've transferred the archive, you'll want to delete it from /var/tmp:

rm /var/tmp/lhhong.zip

	OR

rm /var/tmp/lhhong.tar.gz
