[nycbug-talk] ncftpput question
alex at pilosoft.com
alex
Tue Nov 16 11:54:21 EST 2004
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
>
More information about the talk
mailing list