Advertisement
linccce

So how do I rewrite this then?

Mar 27th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. if ncftp -u"$FTPU" -p"$FTPP" $FTPS<<EOF
  2. mkdir $FTPD
  3. mkdir $FTPD/$NOW
  4. cd $FTPD/$NOW
  5. lcd $BACKUP
  6. mput *
  7. quit
  8. EOF
  9.  
  10. ### Find out if ftp backup failed or not ###
  11. ; then
  12.  rm -f $BACKUP/*
  13. else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement