Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/bash
  2. HOST='ftp.example.com"
  3. USER='pretenduser'
  4. PASS='pretendpass'
  5. TARGETFOLDER='/home/pretenduser/Dropbox/lftp'
  6. SOURCEFOLDER='/files/Inbox'
  7. LOG='/home/pretenduser/Scripts/lftp.log'
  8. lftp -c "
  9. set ftp:ssl-allow no
  10. open $HOST
  11. user $USER $PASS
  12. mirror --verbose --delete $SOURCEFOLDER $TARGETFOLDER
  13. bye
  14. "
  15. >> $LOG
  16.  
  17. lftp -c "
  18. set ftp:ssl-allow no
  19. open $HOST
  20. user $USER $PASS
  21. mirror --verbose --delete $SOURCEFOLDER $TARGETFOLDER
  22. bye
  23. " >> $LOG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement