Commandline restore specific site in multi-site configuration

(Ernesto Serrano) #1

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!

(Jay Pfaffman) #2

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.

(Ernesto Serrano) #3

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

Thank you!