Guest User

Untitled

a guest
Apr 9th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Finally got the answer!!! Create shell script ftpmirror.sh
  2.  
  3. #!/bin/bash
  4. path = /local-dir-path
  5. lftp -e "mirror -R $path /$path" -u username,password ftp-server-ip
  6. Path = local directory which we want to copy into ftp server
  7. username = ftp server user name
  8. password = ftp server password
  9. ftp-server-ip = IP address of ftp server
  10. If lftp package is not installed the installed it using yum.
Add Comment
Please, Sign In to add comment