Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # FTP LOGIN
- HOST='xx.xx.xx.xx'
- USER='xxxxx'
- PASSWORD='xxxx*'
- # DISTANT DIRECTORY
- REMOTE_DIR='/Non_A_C'
- #LOCAL DIRECTORY
- LOCAL_DIR='Non_A_C_LCL'
- # RUNTIME!
- echo
- echo "Starting download $REMOTE_DIR from $HOST to $LOCAL_DIR"
- date
- lftp -u "$USER","$PASSWORD" $HOST <<EOF
- # the next 3 lines put you in ftpes mode. Uncomment if you are having trouble connecting.
- # set ftp:ssl-force true
- # set ftp:ssl-protect-data true
- set ssl:verify-certificate no
- # transfer starts now...
- mirror -c -R $LOCAL_DIR $REMOTE_DIR;
- exit
- EOF
- echo
- echo "Transfer finished"
- date
Add Comment
Please, Sign In to add comment