You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
Doing backup is tedious and involves loads of manual work
Not that much of a problem but doing data restoring each time when there is no need slow the boot time, where at this phase we just need to establish a connection to mongodb.
Describe the solution you'd like
Maybe we can split this into two parts:
a backup.ts file which will do the dumping process
a restore.ts file which will do the restoring process
a connect.ts file which just creates a db connection (this can be the the db.ts file)
The first two files can lead to scripts in package.json
Describe alternatives you've considered
Right now If we want to do backup, we just have to uncomment the backup part in db.ts, without forgetting to comment it back to avoid backing up the data each time.
The text was updated successfully, but these errors were encountered:
machi1990
transferred this issue from aerogear/OpenVolunteerPlatform
May 4, 2020
machi1990
changed the title
split server/db.ts into backup.ts, restore.ts and connect.ts files
add backup.ts, restore.ts files to dump and restore mongodb
May 4, 2020
Feature Request
Current, OVP https://github.com/aerogear/OpenVolunteerPlatform/blob/master/platform/server/src/db.ts is doing multiple functionalities of backing up the db and restoring it by default.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Maybe we can split this into two parts:
The first two files can lead to scripts in
package.json
Describe alternatives you've considered
Right now If we want to do backup, we just have to uncomment the backup part in
db.ts
, without forgetting to comment it back to avoid backing up the data each time.The text was updated successfully, but these errors were encountered: