Merge pull request #217 from MRuy/feature/configurable-database-dump

This commit is contained in:
Ajay Ramachandran
2021-04-17 23:07:08 -04:00
committed by GitHub
4 changed files with 194 additions and 33 deletions

View File

@@ -45,7 +45,33 @@ addDefaults(config, {
},
userCounterURL: null,
youtubeAPIKey: null,
postgres: null
postgres: null,
dumpDatabase: {
enabled: true,
minTimeBetweenMs: 60000,
appExportPath: './docker/database-export',
postgresExportPath: '/opt/exports',
tables: [{
name: "sponsorTimes",
order: "timeSubmitted"
},
{
name: "userNames"
},
{
name: "categoryVotes"
},
{
name: "noSegments",
},
{
name: "warnings",
order: "issueTime"
},
{
name: "vipUsers"
}]
}
});
// Add defaults