Importing Grocy Product Data from Grocy-desktop to a Linux Server

Hey fellow Grocy users!

I wanted to share my experience with setting up a Linux server using Docker for Grocy and importing my existing product data from Grocy-desktop. I hope this post helps those who might be facing similar challenges.

First off, I must say that I'm really enjoying using Grocy. However, I encountered some issues with the Grocy-desktop app, particularly with the port changing every time I started the application. So, I decided to switch to a self-hosted Linux server setup using Docker, which has been working great for me.

Now, the main question I had was how to import the products I had already added in Grocy-desktop to my new Linux server. After doing some research and receiving helpful advice from a user named berrnd, I discovered that it should be as easy as moving the data folder from Grocy-desktop to the data folder on my Linux server. Simple enough, right?

But here's where things got a bit tricky. In my Linux server, I had trouble locating the data folder. However, after some persistence and trial and error, I found it! In the Grocy data folder I created, I was at "nas@nas-server:~/grocy/config$". However, in the Docker container, the data folder was located at "/grocy/config". This discrepancy in the file path caused some confusion (oops!).

After many attempts and different approaches, I finally tried to change directory into "/grocy/config" and it brought me to "nas@nas-server:/grocy/config$", which is different from "nas@nas-server:~/grocy/config$". It was in this "/grocy/config" folder that I discovered new files (that I did not make). So, with a hunch, I replaced those files with my Grocy-desktop data, rebooted the server, and voila! All the products I had added in Grocy-desktop were now successfully imported into my Linux Grocy server. Hooray for small victories!

I want to express my gratitude to berrnd for pointing me in the right direction and helping me troubleshoot this issue. Their input was invaluable in getting everything set up correctly.

In summary, here's a TL;DR of my experience:

I hope this post helps others who might be facing a similar situation. If you have any questions or need further clarification, feel free to ask. Thanks again to berrnd for the guidance!

Here is the Original reddit post: Is it possible to input data into server? : r/grocy