selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitHub
a-train logo

Self-host a-train

Google Drive Shared Drive monitor for Autoscan

Archived DiscontinuedOpen Source
Updated2 years ago
LanguageRust
Setup difficultyModerate
Stars
17
Docker
ghcr.io/m-rots/a-train
Install with Docker

What is a-train?

A-Train monitors Google Drive Shared Drives for file changes and sends triggers to Autoscan to initiate media library scans. It requires a Google Workspace account with Shared Drives and a Service Account with a JSON key. The service runs as a long-running daemon via Docker (ghcr.io/m-rots/a-train) or a pre-compiled Rust binary. Configuration is done through a TOML file specifying the Autoscan URL, credentials, and Shared Drive IDs. The project is archived and feature-frozen; no further fixes will be provided if upstream APIs change.

a-train alternatives

Should you self-host a-train?

a-train scores 28/100 on selfhost.directory (how scoring works) and ranks #113 of 118 in Media Server. It has 17 GitHub stars.

The repository is archived, so don't expect new releases or security fixes.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is written mostly in Rust.

Its closest alternative on selfhost.directory is Jellyfin (88/100, 59 617 stars). It scores higher overall, so compare the two before you pick. See a-train vs Jellyfin side by side.

Features

  • Autoscan trigger integration
  • Google Drive Shared Drive monitoring
  • Multiple Shared Drive support
  • Rust binary installation
  • Service Account Authentication

a-train README

Autoscan, A-Train and Bernard are no longer actively maintained. All projects are considered feature frozen and when compatibility with Google Drive, Plex, Emby, Jellyfin and the -arrs inevitably breaks, no fixes will be provided and such an event will officially mark these projects as end of life. As all three projects have permissible open source licenses, feel free to start a fork and continue development. Ownership of these repositories as well as the Docker images will not be transferred.

A-Train

A-Train is the official Autoscan trigger that listens for changes within Google Drive. It is the successor of Autoscan's Bernard trigger, which unfortunately contains enough logic errors to prompt a rewrite.

How to install a-train

Install a-train with Docker

docker run -d
--name a-train
--volume /path/to/data:/data
--restart unless-stopped
ghcr.io/m-rots/a-train

Requires a-train.toml and account.json mounted to /data

More in Media Server

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…