Reputation: 745
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