[plug] Backup via FTP

ryan at is.as.geeky.as ryan at is.as.geeky.as
Wed Mar 12 20:16:25 WST 2003


> Is there any console based ftp client (ncftp maybe?) that I could
> write a script for that would be able to do that? Or would I just have
> to be specific about entering directories and mget *, etc.. I would 
> use rsync, but the other box is SCO and the admin isn't too happy 
> about putting ssh/rsync on it.

You can automate ftp as follows (this example is not inline with your
question, but you can get the idea):

Make a file containing the commmands (and consider who you give read
access to) :

ftp-script
--------------------
user bob bobspassword
cd /somedirectory
prompt
bin
lcd /tmp/
put whatever.tar.gz
quit

Make a file to do it:

auto-ftp
--------------------
#!/bin/sh
ftp -vn ftp.somehost.com < ftp-script

Then get friendly with cron.

Ryan





More information about the plug mailing list