*BSD News Article 18123


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!Germany.EU.net!news
From: bs@Germany.EU.net (Bernard Steiner)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Challenge
Date: 8 Jul 1993 20:51:50 +0200
Organization: EUnet Deutschland GmbH, Dortmund, Germany
Lines: 33
Distribution: world
Message-ID: <21hqc6$l1@Germany.EU.net>
References: <GSPIEGEL.127.742156302@bsa3.kent.edu>
NNTP-Posting-Host: qwerty.germany.eu.net
Keywords: cron


In article <GSPIEGEL.127.742156302@bsa3.kent.edu>, GSPIEGEL@bsa3.kent.edu (Greg Spiegelberg) writes:
|> 3)  I'd then like the cron file to automatically ftp to our ftp server 
|>     (which happens to get backed up regularly).
|> 
|> I'm just not sure how I can get a script file to do the ftp bit.

assume name client and server.

Use tftp instead. Okay, tftp is probably a security hole, but then there's
security by obscurity, right ?

Create a directory on client and make it accessible to tftp read-only.
Put your dump in there. Use tftp on server to retrieve backup file from
client and put it on server.

If you want to play safe with the backups, add a checksum file and check the
checksums.

Generate OK message on server.

The program tftp reads from stdin instead of from tty, and it does indeed work
with sh scripts like tftp << EOF

Hope that helps
	Bernard
-- 
=====    ____                          =====   EUnet Deutschland GmbH
=====   /      /   /   ___    ___  _/_ =====   Emil-Figge-Str. 80
=====  /----  /   /  /   /  /___/  /   =====   D-44227 Dortmund
===== /____  /___/  /   /  /___   /    =====   Germany
=======                              =======   Vox +49 231 972 00
======= Connecting Europe since 1982 =======   Fax +49 231 972 1111