Plus 1 on this. On my devcontainer instance, I was able to backup and restore, only after I added this. Thanks @sreenu_paruchuri
"remoteEnv": {
"RAILS_DEVELOPMENT_HOSTS": ".app.github.dev",
+ "USER": "discourse",
"PGUSER": "discourse",
"SELENIUM_FORWARD_DEVTOOLS_TO_PORT": "9229",
},