Moving from a VM to a new system #9670
-
Hello, `inventree@inventree:/opt/inventree/data/backup$ invoke backup The above exception was the direct cause of the following exception: Traceback (most recent call last):
I also tried migrating and got the following message: `inventree@inventree:/opt/inventree/data/backup$ invoke export-records -f data.json The above exception was the direct cause of the following exception: Traceback (most recent call last):
I don't know what else I could try. I would be very grateful if someone could help me. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You are using the wrong commands to call the cli. From the paths in the error mesages it seems that you are using the package installer. that requires the following invoke base command |
Beta Was this translation helpful? Give feedback.
-
inventree@inventree:/$ inventree run cli backup Backing up InvenTree database... |
Beta Was this translation helpful? Give feedback.
-
sudo inventree run cli restore Restoring InvenTree database |
Beta Was this translation helpful? Give feedback.
You are using the wrong commands to call the cli. From the paths in the error mesages it seems that you are using the package installer. that requires the following invoke base command
inventree run cli
so you would callinventree run cli backup
for a backup