Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- FTP_HOST='ftp.example.com'
- FTP_USER='user'
- FTP_PASS='pass'
- REMOTE_DIR='/remote/dir1'
- LOCAL_DIR='/home/user/dir2'
- lftp -e "mirror -R -e -x /\..+/$ LOCAL_DIR ${REMOTE_DIR}; quit" -u ${FTP_USER},${FTP_PASS} ${FTP_HOST};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement