LINUX, FOSS AND LIBRARY TECHNOLOGY ENTHUSIAST

Friday, December 4, 2026

Rclona: Manage Rclone Backups Through a Web GUI Using Docker

0 comments
Rclone is a powerful command-line tool for managing files across local storage, remote servers and cloud storage providers. However, managing transfers entirely through the terminal may not be convenient for everyone.

Rclona provides a web-based graphical interface for working with Rclone, making file management and backup operations easier.

In this tutorial, we will deploy Rclona using Docker Compose on a Debian-based home server and configure SFTP access to a remote server using SSH key authentication over Tailscale.

Requirements

  • Debian 12 or Ubuntu Linux server
  • Docker and Docker Compose
  • Rclona Docker image
  • SSH access to a remote server
  • Tailscale installed on both servers
  • Local storage for backups

My setup uses Debian 12, Docker, an additional storage drive mounted at /mnt/drive1, and a remote server accessible through Tailscale.

Configure SSH key authentication

First, generate an Ed25519 SSH key on the home server.

mkdir -p ~/.ssh && chmod 700 ~/.ssh
ssh-keygen -t ed25519 -f ~/.ssh/rclona_key -C "rclona-backup"
chmod 600 ~/.ssh/rclona_key && chmod 644 ~/.ssh/rclona_key.pub

Copy the public key to the remote server:

ssh-copy-id -i ~/.ssh/rclona_key.pub remote-username@100.73.97.1

Test the connection:

ssh -i ~/.ssh/rclona_key remote-username@100.73.97.1

If successful, you can access the remote server without entering its account password. Type exit to return to your home server.

Prepare the Docker directory

Create a dedicated directory for Rclona:

mkdir -p ~/docker/rclona && cd ~/docker/rclona
mkdir -p config data logs

Deploy Rclona using Docker Compose

Create the Compose file:

nano docker-compose.yml

Add the following configuration:

services:
  rclona:
    image: ghcr.io/ecodes-lab/rclona:latest
    container_name: rclona
    hostname: rclona
    restart: unless-stopped

    ports:
      - "3001:3001"

    environment:
      RCLONA_AUTH_ENABLED: "true"
      RCLONA_AUTH_USERNAME: "admin"
      RCLONA_AUTH_PASSWORD: "${RCLONA_AUTH_PASSWORD}"
      RCLONA_DATA_DIR: "/data"
      RCLONA_LOCAL_PATHS: "/data,/data/drive1"
      RCLONE_CONFIG: "/config/rclone.conf"
      TZ: "Asia/Kolkata"

    volumes:
      - ./config:/config
      - ./data:/data
      - ./logs:/logs
      - /mnt/drive1:/data/drive1
      - /home/mahesh/.ssh/rclona_key:/ssh/id_ed25519:ro

    networks:
      - rclona

networks:
  rclona:
    driver: bridge

Replace /home/mahesh with your Linux home directory if necessary.

Create a .env file to configure the login password:

nano .env

Add:

RCLONA_AUTH_PASSWORD=YourStrongPasswordHere

Protect the file:

chmod 600 .env

Start Rclona:

docker compose up -d

Check whether the container is running:

docker ps

View logs if necessary:

docker logs -f rclona

Open the web interface:


Log in using the configured username and password.

Verify local storage access

The Docker configuration mounts the host's /mnt/drive1 directory inside the container as /data/drive1.

Verify access:

docker exec -it rclona ls -lah /data/drive1

Check the container's user and group:

docker exec -it rclona id

This is particularly useful when troubleshooting storage permissions.

Configure SFTP in Rclona

Open the Rclona web interface and create a new SFTP remote.

Use the following connection details:

Setting Value
Remote name remote-backup
Protocol SFTP
Host 100.73.97.1
Port 22
Username remote-username
Private key /ssh/id_ed25519

Configure SSH private-key authentication and verify the remote server's SSH host fingerprint when prompted.

Save the configuration and test the connection.

You can now access the remote server through Rclona using SFTP over your private Tailscale network.

Configure SSH private-key authentication and verify the remote server's SSH host fingerprint when prompted.

Save the configuration and test the connection.

You can now access the remote server through Rclona using SFTP over your private Tailscale network.

Managing backups

With local storage and remote SFTP configured, Rclona can be used to manage file transfers between the two locations.

For example, consider transferring Koha database backups:

Local directory:

/data/drive1/db-backups/

Remote destination:

remote-backup:/client-db-backups/

Use the Rclona interface to manage the required file operations. For scheduled transfers, use a host-side cron job or systemd timer if scheduling is not supported by your installed version.

For important backups, prefer copy-based or versioned backup strategies rather than an unprotected mirror that could propagate accidental deletions.

Security considerations

  • Use a strong Rclona login password.
  • Keep the SSH private key protected and mounted read-only.
  • Prefer Tailscale for private remote connectivity.
  • Restrict access to port 3001 using firewall rules or a private reverse proxy.
  • Protect your .env file.
  • Keep an independent backup of the Rclone configuration.


Rclona offers a convenient graphical interface for managing Rclone operations. By combining Docker, local storage and SSH key authentication, we can build a practical backup-management environment for a homelab.

In my setup, Rclona runs on a Debian 12 home server, accesses additional storage mounted at /mnt/drive1, and connects to a remote server through Tailscale using SFTP.

This setup is particularly useful for managing Koha database backups, transferring library-server files and maintaining copies of important data on remote storage.

Useful resources

No comments:

Post a Comment