[nycbug-talk] ncftpput question

Steve Rieger steve.rieger
Tue Nov 16 11:56:09 EST 2004


am trying to create a full backup of a few servers from command line 
via cronob, am using ncftpput here is the script and the error i get 
below,.

what am i doing wrong here.



#!/bin/bash
HOST=yoyoma

USER=fiddle
PASS=flute
HOSTNAME=`/bin/hostname`
DATE=`date +%Y-%m-%d-%H:%M:%S`
FILENAME=$HOSTNAME-$DATE.tar.gz
tar cf - / | gzip | /usr/local/bin/ncftpput -S .tmp -u $USER -p $PASS 
-P22 canregie.hall.com   full $FILENAME
Cannot open local file carnegie.hall.com-2004-11-16-11:52:02.tar.gz for 
reading: No such file or directory


--
Steve Rieger
Direct 212-804-1131
Cell 646-335-8915





More information about the talk mailing list