Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
README.md
crontab
docker-compose.yml
entrypoint.sh
example.env
mirror.sh

README.md

Rename example.env to .env and set the environment variables.

FTP_HOST=ftp.example.com
FTP_USER=user
FTP_PASS=password
FTP_SOURCE=/
FTP_TARGET=/sync

Update crontab to set the required frequency. The default value runs the sync every hour. Check the https://crontab.guru to explore more options.

0 * * * * /bin/sh /mirror.sh > /proc/1/fd/1 2>/proc/1/fd/2

Run as a service

docker-compose build
docker-compose up -d

Run sync manually

FTP_HOST=ftp.example.com FTP_USER=user FTP_PASS=password FTP_SOURCE=/ FTP_TARGET=./sync ./mirror.sh

Check the https://lftp.yar.ru/lftp-man.html to explore more options.

You can’t perform that action at this time.