Activities

August 2008
M T W T F S S
« Jul   Oct »
 123
45678910
11121314151617
18192021222324
25262728293031

Shell script to copy all files recursively and upload them to remote FTP server

#!/bin/bash FTP=”/usr/bin/ncftpput” CMD=”” AUTHFILE=”/root/.myupload” if [ -f $AUTHFILE ] ; then # use the file for auth CMD=”$FTP -m -R -f $AUTHFILE $myf $remotedir $localdir” else echo “*** To terminate at any point hit [ CTRL + C ] ***” read -p “Enter ftpserver name : ” myf read -p “Enter ftp username : ” […]