V
V
vittmann2020-06-25 23:06:33
MySQL
vittmann, 2020-06-25 23:06:33

Sharding and backup/restore?

If you use horizontal sharding and the database is "spread" over several servers (for example, the shards of one large table will be spread over 2 or more physical servers), then how to back up the database and, most importantly, how to restore it (for example, a table is deleted )? In which DBMS (MySQL, Postgres) is this even possible? Please share if you have experience.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2020-06-25
@saboteur_kiev

for example, the shards of one large table will be spread over 2 or more physical servers

What is this for?
They don't do that. Horizontally done to increase the speed of return.
Of course, you can spread the data to different servers, but this is done at the level of the business logic architecture, and not at the level of one table.

V
Vitaly Karasik, 2020-06-26
@vitaly_il1

Even without sharding, the correct backup of a large database is not a trivial task.
Sharding is even more difficult. See for example https://dzone.com/articles/mysql-sharding-devops-c... and others on the topic "sharding backup".
If you do not have a DBA, I advise you to use managed services - AWS RDS, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question