yingshaoxo / we_love_party

Let's party.
0 stars 0 forks source link

How to export and import user's data? #9

Open yingshaoxo opened 1 year ago

yingshaoxo commented 1 year ago

You need to add a document, so that I could operate accordingly.

So that I could have a data backend from time to time.

It is better to have a python automate script to do those things

yingshaoxo commented 1 year ago

I just made two functions to do the backup and recovery of mongodb: https://github.com/yingshaoxo/auto_everything/blob/dev/auto_everything/database.py#L55