Bolic
Bolic

Reputation: 745

Rails. stop database connection and reconnect

I try to implement a very easy backup process. Just dump the database into a file. The user gets all files displayed, choose one, and then the dump is loaded back. But loading back the dump is not possible while the rails server is running. How can I manage this? How can I stop the database connection, do my stuff and then reconnect to the database?

There are libraries out like Yamldb which works, but this library only can save one backup. I have to save more then one and give them names.

Upvotes: 0

Views: 512

Answers (1)

Paulo Abreu
Paulo Abreu

Reputation: 1786

you will need another app running for that.

Upvotes: 1

Related Questions