sync ok
parent
0316b1e2e1
commit
9788c2f9bd
@ -1,6 +1,20 @@
|
||||
if [ ! -f .env ]
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# get variable from .env file
|
||||
if [ -f .env ]
|
||||
then
|
||||
export $(cat .env | xargs)
|
||||
fi
|
||||
|
||||
lftp -e "open $HOST; user $USERNAME $PASSWORD; mirror -Rnev --ignore-time --parallel=10 ./output /www/moonwalks.be/ ;"
|
||||
|
||||
# https://lftp.yar.ru/lftp-man.html
|
||||
|
||||
# -R, --reverse reverse mirror (put files)
|
||||
# -n, --only-newer download only newer files (-c won't work)
|
||||
# -e, --delete delete files not present at the source
|
||||
# -v, --verbose[=level] verbose operation
|
||||
|
||||
# --parallel[=N] download N files in parallel
|
||||
# note: the number of maximum parallels connections accepted by the ftp can vary, if you get an error reduce it.
|
||||
|
||||
lftp -e "set ssl:verify-certificate false; open $FTP_HOST; user $FTP_USERNAME $FTP_PASSWORD; mirror -Rnev --ignore-time --parallel=4 ./output /www/moonwalks.be ; bye"
|
Binary file not shown.
Loading…
Reference in New Issue