Guest User

Untitled

a guest
Sep 23rd, 2018
1,105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/bash
  2. HOST="email.com:1234"
  3. USER="username"
  4. PASS="password"
  5. LCD="/path/to/local/dir"
  6. RCD="/path/to/remote/dir"
  7.  
  8. if [ ! -e "/tmp/xfer" ]
  9. then
  10. touch /tmp/xfer
  11.  
  12. lftp -c "set ftp:list-options -a;
  13. open ftp://$USER:$PASS@$HOST;
  14. lcd $LCD;
  15. cd $RCD;
  16. mirror --delete \
  17. --only-missing \
  18. --verbose"
  19.  
  20. rm /tmp/xfer
  21. else
  22. echo "Xfering already going"
  23. fi
Add Comment
Please, Sign In to add comment