# Lftp-mirror

Lftp-mirror is a self-hosted cloud app. A Docker container that uses LFTP to mirror a remote SFTP directory to a local folder, copying, removing, and preserving file permissions. It is open source and self-hosted, installable on Unraid and Docker Hub.

Canonical page: https://ourlocalhost.com/app/7269/lftp-mirror

## Description

A Docker container that uses LFTP to mirror a remote SFTP directory to a local folder, copying, removing, and preserving file permissions.

## Platform availability

Available on 1 of 9 platforms: Unraid.

## Health score

60/100 (Good), based on 3 of 4 factors.
- Maintained: 72 (last commit 19 days ago)
- Popular: 62 (1,307 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- Unraid: https://ca.unraid.net/apps/lftp-mirror-1rdw0l81o7592o?q=lftp-mirror
- GitHub: https://github.com/lavv17/lftp
- Docker Hub: https://hub.docker.com/r/gregyankovoy/lftp-mirror/

## Common questions

### How can I mirror a large remote directory in parallel?

Use `mirror --scan-all-first --parallel=100` followed by the directory. The lftp man page notes that `use-pget` will use pget to transfer every single file.

### Why does lftp mirror re-download files that have not changed?

This can happen because LFTP caches directory listings and remote listings can lag behind filesystem changes. Run `cache flush`, or set `set cache:enable no` in `$HOME/.lftprc`.

### Can lftp mirror use FTPS or HTTPS?

Yes. lftp can mirror files and directories using the FTPS or HTTPS protocol.

### Can lftp mirror be used to keep a Linux system in sync with an FTP-only cloud backup?

Yes. The LFTP MIRROR option can keep a local Linux account in sync with a backup on a cloud web server when FTP is the available access.

## Alternatives

- AeroFTP: A modern, open-source file manager and client for FTP, SFTP, WebDAV, and S3, featuring an AI assistant, cloud sync, and military-grade encr…
- FileZilla: FileZilla is a cross-platform FTP, SFTP, and FTPS client for transferring and managing files on remote servers.
- Wget: Wget is a command-line utility for non-interactive downloading of files, directories, and entire websites over HTTP, HTTPS, and FTP.
- aria2: Aria2 is a lightweight, multi-protocol, multi-source, cross-platform command-line download utility that retrieves files over HTTP/HTTPS, FT…
- cURL: cURL is a versatile tool used to send and receive information between your computer and a server via the internet.
- lftp: LFTP is a versatile tool for moving files between your computer and a remote server.
- termscp: A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/Kube/S3/WebDAV.

---
Source: Our Local Host (https://ourlocalhost.com/app/7269/lftp-mirror), the self-hosted and open-source app directory.
