[nycbug-talk] ncftpput question
George Georgalis
george
Tue Nov 16 12:41:19 EST 2004
dunno, but I'd try the first method with no : in the filename
could be confusing ncftp
// George
On Tue, Nov 16, 2004 at 12:15:48PM -0500, Steve Rieger wrote:
>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
>
>_______________________________________________
>% 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
>
--
George Georgalis, systems architect, administrator Linux BSD IXOYE
http://galis.org/george/ cell:646-331-2027 mailto:george at galis.org
More information about the talk
mailing list