mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-18 19:22:44 +00:00
10 lines
295 B
Bash
Executable File
10 lines
295 B
Bash
Executable File
#!/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"
|