Closed cPholloway closed 4 months ago
^ this is just the rebase on main
So, my only overall commentary about this is mostly about ways this could have potentially been made faster/simpler. Basically this is just running the pkgacct processes I already had code for and then the restorepkg bits after restore, which should work, but is a bit "inefficient" in our context. Testing on a server with an obnoxious amount of users and data and a server with very few users/data is as such advisable from a performance standpoint. I'm not actually sure whether the amount of inefficiency here will actually matter.
That said, doing the following would have been simpler/more efficient execution-wise (but taken more time to code potentially?):
pg_restore
with the --clean
opt to restore the DB dump onto our cluster./opt/cpanel-ccs/bin/rebuildccsconfig
to reimpose the old UUIDs.If we wind up needing to do pg_dump for customer DB migration, then we probably should revisit this component to share code for that in the future.
^ this is just a rebase on main
^ rebase on main
By submitting pull requests to this repo, I agree to the Contributor License Agreement which can be found at: https://github.com/cpanel/elevate/blob/main/docs/cPanel-CLA.pdf