Hacker News new | ask | show | jobs
by l0f 4171 days ago
database: maste-slave

uploads: rsync

there's a ruby gem called backup (https://meskyanichi.github.io/backup/v4/) ;)

1 comments

With a master-slave DB configuration, surely you need 2n db machines in order to replicate the database?
it's one server as master (write) and one as slave (read-only). you also must do backups, but using this approach it will be more safe than only backups.

later, you can setup to when one server crashes [master or slave], automatically setup a new server and copy the data.