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