[nycbug-talk] ncftpput question

Steve Rieger steve.rieger
Tue Nov 16 12:15:48 EST 2004


ok so lets say that i do  a -c how would i define the filename to be 
$FILENAME, i cant do it with <stdin


On Nov 16, 2004, at 11:54 AM, alex at pilosoft.com wrote:

> On Tue, 16 Nov 2004, Steve Rieger wrote:
>
>> 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,.
> man ncftpput
> You need ncftpput -c (specify that input is stdin).
>
>> 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
>>
>> _______________________________________________
>> % NYC*BUG talk mailing list
>> http://lists.nycbug.org/mailman/listinfo/talk
>> %Be sure to check out our Jobs and NYCBUG-announce lists
>> %We meet the first Wednesday of the month
>>
>
>
>
--
Steve Rieger
Direct 212-804-1131
Cell 646-335-8915





More information about the talk mailing list