Create an rsync mirror of the SponsorBlock database
Data and mirror contents are licenced and used under CC BY-NC-SA 4.0 from https://sponsor.ajay.app
Environment Variables
SQLITE=TRUE # set to auto-generate sqlite .db file to /export
MIRROR_URL=qc.mchang.xyz # override to set upstream mirror, must be rsync
MIRROR=TRUE # set to start rsyncd and cron to run every 5 minutes
VALIDATE=TRUE # set to validate files with rsync checksum
CSVLINT=TRUE # set to remove invalid csv entriesReplaced with upstream container https://github.com/ajayyy/SponsorBlockServer
Environment Variables
DBINIT=TRUE # set to only initialize the database and immediately exitPostgreSQL Setup
- Download the mirror to a known directory
- Set
postgresExportPathto the mirror directory
SQLite Setup
- Set
SQLITE=TRUEon sb-mirror - Set the export directories for
SponsorBlockDB.db
Uncomment the respective config file mapping
Database Comparison
| Database | Postgres | SQLite | MSSQL |
|---|---|---|---|
| Advantages | Performs Well | Performs Poorly | - |
| Disadvantages | RAM intensive COPY on start | Starts Immediately | Not Supported |
The default admin ID is a hash of WjGS5C9WRhVzjmB8KdrdR8jLqvTwC5q5kAGdC5WVzfDcbAPX