Untitled

mail@pastecode.io avatar
unknown
sh
3 years ago
528 B
3
Indexable
Never

#!/bin/sh

HOST='ftpes://ftp.domain.com'
USER='ftpusername'
PASSWORD='ftppassword'

lftp -u "$USER","$PASSWORD" $HOST <<EOF
set ftp:ssl-force true
set ftp:ssl-protect-data true
set ssl:verify-certificate no
set sftp:auto-confirm yes

mirror --parallel=1 -exclude '^.*[SsIiNnGgLlEe].*/$' /_MUSIK-SORTED/BY.GENRE/Hip-Hop/ /your/local/dir/;
mirror --parallel=1 -exclude '^.*[SsIiNnGgLlEe].*/$' /_MUSIK-SORTED/BY.GENRE/Jazz/ /your/local/dir/;
mirror --parallel=1 -exclude '^.*[SsIiNnGgLlEe].*/$' /remotedir3/ /localdir3/;
exit
EOF