# A-Train

A-Train is an archived, no-longer-maintained trigger for Autoscan that monitors Google Drive Shared Drives via a service account and starts media library scans when files change, helping media library users keep Google. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/2579/a-train

## Description

A-Train is an archived, no-longer-maintained trigger for Autoscan that monitors Google Drive Shared Drives via a service account and starts media library scans when files change, helping media library users keep Google Drive collections current.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

22/100 (Low), based on 5 of 5 factors.
- Maintained: 0 (GitHub repository is archived)
- Popular: 25 (17 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 10 (8 GB minimum RAM)
- Security check: 60 (no serious findings, 5 minor, CI)

## Links

- GitHub: https://github.com/m-rots/a-train
- Unraid: https://ca.unraid.net/apps/a-train-1e9uyrm14hza9q?q=A-Train

## Common questions

### Can A-Train monitor a personal Google Drive (My Drive) folder?

No. It works exclusively through Shared Drives and Service Accounts. It does not support My Drive.

### What authentication method does A-Train support?

It uses service-account-based authentication only. It does not support alternative authentication methods.

### What Google setup is required before A-Train can scan?

Create a Service Account and a JSON key in a Google Cloud project. Add the Service Account email to a Google Workspace Shared Drive with Reader permission. Activate the Drive API in that Google Cloud project.

### Where does A-Train look for configuration when run from source or as a binary?

It looks for a-train.toml and account.json in the current working directory. The configuration file must be named a-train.toml.

### What files must be mounted for A-Train in Docker?

Mount a volume at /data containing a-train.toml and the Service Account key file account.json. That directory is where Docker expects the configuration and key.

---
Source: Our Local Host (https://ourlocalhost.com/app/2579/a-train), the self-hosted and open-source app directory.
