Stop project entirely and be able to backup quickly
marekf93
HOBBYOP

2 months ago

Hello,

I have a project running on Railway which is a headless WordPress (backend is WordPress and frontend is Next.js). I have a client who still hasn't decided if they want to proceed. So I want to pause the project that I don't pay unnecessary €5 per month, but also being able to quickly start from the backup once they decide.

What are my options to not pause the project but to completely stop it so I don't pay the feed, and then once the client decides, I will quickly back it up again?

Thank you

Solved$10 Bounty

Pinned Solution

enlorik
HOBBY

2 months ago

Might be useful:

https://docs.railway.app/reference/app-sleeping

https://station.railway.com/feedback/ability-to-pause-projects-4e8b1686

https://station.railway.com/questions/my-project-was-deleted-7ed9cd05

There isn’t a user-visible feature to completely “suspend” a project so it’s hosted but not billed. To actually stop paying while keeping the option to come back quickly, you’d:

-export the WordPress DB (mysqldump / pg_dump using the DB service’s DATABASE_URL)

-back up any files/uploads stored on a Railway volume (tar the directory and copy it off)

-keep your WordPress + Next.js code in Git

Later, when the client decides:

-create a new DB service and import the dump

-create a new app service, attach a volume and restore the files

-redeploy from the same repo and point it at the restored DB

3 Replies

enlorik
HOBBY

2 months ago

Might be useful:

https://docs.railway.app/reference/app-sleeping

https://station.railway.com/feedback/ability-to-pause-projects-4e8b1686

https://station.railway.com/questions/my-project-was-deleted-7ed9cd05

There isn’t a user-visible feature to completely “suspend” a project so it’s hosted but not billed. To actually stop paying while keeping the option to come back quickly, you’d:

-export the WordPress DB (mysqldump / pg_dump using the DB service’s DATABASE_URL)

-back up any files/uploads stored on a Railway volume (tar the directory and copy it off)

-keep your WordPress + Next.js code in Git

Later, when the client decides:

-create a new DB service and import the dump

-create a new app service, attach a volume and restore the files

-redeploy from the same repo and point it at the restored DB


uxuz
MODERATOR

2 months ago

Hey, as enlorik mentioned above there technically isn't a way to completely pause your project without any destructive actions (such as deleting the volume). One way of pausing everything would be to remove all the deployments from all the services you have in your project. This way, you can restore them by just redeploying all of them again. You will only be charged for the volume in this case, which should be negligible.


marekf93
HOBBYOP

2 months ago

Hi,

thank you both, I was trying to backup, will see if will work in a future.

Thanks,
Marek


Status changed to Solved brody 2 months ago


Loading...