Page MenuHomePhabricator

[keyserver] Specify host to mysqldump
ClosedPublic

Authored by ashoat on May 20 2022, 2:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 11:24 PM
Unknown Object (File)
Fri, Nov 8, 12:48 PM
Unknown Object (File)
Mon, Oct 28, 2:49 AM
Unknown Object (File)
Sat, Oct 26, 11:17 PM
Unknown Object (File)
Sat, Oct 26, 6:57 PM
Unknown Object (File)
Sat, Oct 19, 1:06 PM
Unknown Object (File)
Oct 15 2024, 5:26 AM
Unknown Object (File)
Oct 5 2024, 1:42 AM

Details

Summary

Right now it's basically hardcoded to use localhost. We have this config in DBConfig, so we should use it. This will make the backup work if the database is not local.

Depends on D4097

Test Plan
  1. I checked mysqldump --help | grep host on both my local macOS as well as on the prod server and it looks like it's definitely -h
  2. I tested the backup cronjob by modifying the time config
  3. I tested localhost to make sure it works as an alias to 127.0.0.1

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage