Sign inSign up

gregyankovoy/lftp-mirror

By gregyankovoy

•Updated about 6 years ago

Quick and dirty sftp script with su-exec & all user file permissions

Image
0

10K+

gregyankovoy/lftp-mirror repository overview

⁠docker-lftp-mirror

  • Description:

    • Quick & dirty SFTP mirror via LFTP
  • Instructions:

    • Set required environmental variables
    • Place id_rsa file in /config/ssh (/host/volume/dir/ssh)
  • Variables:

    • Required
      • PUID: UserId used to run process / file ownership
      • PGID: GroupId used to run process / file ownership
      • HOST: IP/host/url of host
      • PORT: Port of host
      • USERNAME: SSH user on host
      • REMOTE_DIR: Directory on host to mirror locally
      • LFTP_PARTS: Number of parts in which to split files (-use-pget[-n=N])
      • LFTP_FILES: Number of files to download in parallel (--parallel[=N])
    • Optional
      • FINISHED_DIR: Optional finished directory to place finished transfer (by default, downloads end up in /config/download)

Tag summary

Content type

Image

Digest

Size

6.2 MB

Last updated

over 7 years ago

docker pull gregyankovoy/lftp-mirror