R
Railway2w ago
law

Postgres Backup Question

https://blog.railway.app/p/postgre-backup I am following the blog post but I had a question using pg_restore. Do I use railway CLI to use the pg_restore command? I tried to do it locally but had a zsh: permission denied error. What is the recommended way to restore from AWS?
Railway Blog
How to Backup and Restore Your Postgres Database
In this post, we will go over the process of backing up and restoring your Postgres database hosted on Railway.
5 Replies
Percy
Percy2w ago
Project ID: N/A
law
law2w ago
N/A
Brody
Brody2w ago
what is the exact command you ran
law
law2w ago
sudo pg_restore -U postgres -h r blah.proxy.rlway.net -p 00000 -d railway -v /Users/***/pgdump/backup.dump Would like to not mess with my permission settings too much if possible.
Brody
Brody2w ago
try different variations of that command