automated file transfer?

Rick Stevens rstevens at vitalstream.com
Mon Sep 19 17:05:56 UTC 2005


mike wrote:
> hi all,
> 
> i'm a unix newbie and i'm trying to do the following...
> 
> i'm TARing up a directory, then i need to transfer this file to
> another machine.  so far i have a script to tar up the directory set
> up using crontab to run every day at a certain time.  however, i need
> to transfer this file to another machine and i was wondering if i can
> do it in ftp all in one line?  in other words, how would i automate
> logging into another machine via ftp, and transferring a file to that
> remote machine?

scp comes to mind (encrypted copy over SSH), as does SFTP.  Both are
part of the SSH suite, standard equipment on Linux.  You should have a
look at rsync and rsync tunneled through SSH as well (also standard
equipment on Linux).  rsync is the tool most FTP mirror sites use to
keep synchronized.

If you must run FTP, take a look at ncftpput/ncftpget (non-interactive
FTP clients).  Yes, they're also standard equipment on Linux.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-                      LOOK OUT!!! BEHIND YOU!!!                     -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list