Importing data to droplet installation #6345
-
I have setup a Docker installation, running InvenTree 0.13.0, in our own physical server for testing. Everything is running fine and we are doing daily backups that I copy to a local folder using SFTP.I have also exported the data to a JSON file as suggested... Meanwhile, we want to access data from anywhere and have used the DigitalOcean droplet running version 0.11.0. How can I import the JSON data file or do a DB restore from the backup in the droplet version? I have been trying to connect PgAdmin to the droplet database from here without success! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can use the cli on droplet installations with |
Beta Was this translation helpful? Give feedback.
-
Managed to put it to work in DigitalOcean using a Docker droplet instead and following the Docker installation instructions. For those of you who have been struggling with the same problems, here is what I did:
As a side note, I am using a Basic, Premium AMD, 1vCPU, 2Gb RAM, 25Gb SSD and 2Tb transfer rate architecture. The most basic (and cheapest) was struggling... Cheers. |
Beta Was this translation helpful? Give feedback.
Thank for the reply. Still no luck...
After copying the JSON files to /opt/inventree, ran
inventree run invoke import-records
as you suggested and got the error:Also tried to send the 2 backup files I got from the Docker installation to /opt/inventree/data/backup and do
invoke restore
. First it complained couldn't find 'django'. Then after installing it, it complained about amoneyd
module...Can't seem to put it to work in DigitalOcean after such an easy installation in Docker!