A backup from an SQL file #8873
ederollora
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am new to this group. I have an automation script that gets an SQL file in a day or so. This dumped file, may be similar to the JSON file; I have not checked it. Also, I cannot find any backup of the media, unfortunately.
I did not know anything about
invoke backup/restore
(my bad).And the
backup_automation_script.sh
should be run once a day/week or so. If you "fuck up" the container and you did not do the export to an .SQL file, then you are going to lose all the information. I am using docker, by the way.You need to have the default version in docker:
The steps are:
or
Once you have the
inventree_backup.sql
in the host machine, you create theinvoke update
in theinventree-server
:After it is done, we go to the
inventree-db
, but to thepostgres
database.Then we DROP and CREATE the database inventree. Whatever you had done in the
inventree
, we drop it.Then we run:
Then we start the container:
This should be it. Maybe you have another version or another way to solve the problem. I did try to look for an inventree SQL or Google search, nothing came up. Even in this Inventree Github discussion forum.
If you see any errors, let me know.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions