2024-05-24 10:01:58 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-10-04 15:51:07 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=rclone-sftp-openssh
|
|
|
|
USER=rclone
|
|
|
|
PASS=password
|
2024-04-08 15:51:49 +00:00
|
|
|
PORT=28627
|
2019-10-04 15:51:07 +00:00
|
|
|
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
|
|
|
|
start() {
|
|
|
|
docker run --rm -d --name ${NAME} \
|
2024-04-08 15:51:49 +00:00
|
|
|
-p 127.0.0.1:${PORT}:22 \
|
2019-10-04 15:51:07 +00:00
|
|
|
rclone/test-sftp-openssh
|
|
|
|
|
|
|
|
echo type=sftp
|
2024-04-08 15:51:49 +00:00
|
|
|
echo host=127.0.0.1
|
|
|
|
echo port=$PORT
|
2019-10-04 15:51:07 +00:00
|
|
|
echo user=$USER
|
|
|
|
echo pass=$(rclone obscure $PASS)
|
2023-09-21 13:55:48 +00:00
|
|
|
echo copy_is_hardlink=true
|
2024-04-08 15:51:49 +00:00
|
|
|
echo _connect=127.0.0.1:${PORT}
|
2019-10-04 15:51:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|