mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
add general lftp script
This commit is contained in:
parent
fa78c1fb1e
commit
a448e09d0f
9
lftp.sh
Executable file
9
lftp.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
thread=${TUNASYNC_LFTP_CONCURRENT:-"5"}
|
||||||
|
opts=${TUNASYNC_LFTP_OPTIONS:-""}
|
||||||
|
|
||||||
|
|
||||||
|
[ ! -d "${TUNASYNC_WORKING_DIR}" ] && mkdir -p "${TUNASYNC_WORKING_DIR}"
|
||||||
|
cd ${TUNASYNC_WORKING_DIR}
|
||||||
|
lftp "${TUNASYNC_UPSTREAM_URL}" -e "mirror --verbose --skip-noaccess -P ${thread} --delete ${opts} ; bye"
|
Loading…
x
Reference in New Issue
Block a user