Commandline restore specific site in multi-site configuration

Hi, I just deployed a multi-site discourse and now I want to programmatically migrate all my discourse sites (almost 20) to the new server.

Is possible to specify the site/database when calling ./launcher enter app or discourse restore filename.tar.gz?

Thank you in advance!

Yes you need to pass the database name when you call the script or enter the console. Search here for rails_db in other multisite topics.

6 Likes

Perfect, I can use RAILS_DB=dbname restore filename.tar.gz and works like a charm!

Thank you!

6 Likes