F
F
fantom_ask2020-08-04 20:26:49
Django
fantom_ask, 2020-08-04 20:26:49

How can I do a regular database backup?

I want to regularly back up the database to a specific location, and then upload it back
And if there are two different records with the same id, then update the id with a newer date
does django have tools for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2020-08-04
@sergey-gornostaev

Of course not, because Django is a web framework, it's not its task class.

D
Dr. Bacon, 2020-08-05
@bacon

And if there are two different entries with the same id, then update the id with a newer date

There is no need to complicate your life, you need to learn two commands: dump the base and fill in the existing dump. All this is done at the database level.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question