Backup / Restore Homarr

I used the docker compose found here: https://homarr.dev/docs/integrations/containers/ I have access to "/appdata/db/db.sqlite" in the docker image. I deleted the file and restarted the container. Went back to Homarr and and the layout was still there. Also opened in private browsing and went to the Homarr site and the layout was still there (checked for caching) How would I move this info to another machine? Does the new machine need to have the same system name?
Docker Containers | Homarr documentation
Enabling the Docker integration
Solution:
Well... Thank you for your time. I figured out the issue. The .env file had been changed in the background. I re-edited it and it worked.
Jump to solution
17 Replies
Cakey Bot
Cakey Bot3w ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Manicraft1001
Manicraft10013w ago
You must shut down when deleting the file. Otherwise the DB gets flushed from RAM to disk again.
WheresWaldo79
WheresWaldo79OP3w ago
I did 🙂 "docker stop homarr" copy and delete file to new location outside of the docker app. Restarted it with "docker start homarr" and then went to the URL
Manicraft1001
Manicraft10013w ago
!qa required_data
Cakey Bot
Cakey Bot3w ago
Thank you for your question. Our support team has noted that your request does not meet the minimum required data so we are unable to answer your question. Please provide: - your Homarr logs - your setup configuration (eg. docker compose, docker run, helm chart, screenshot, ...) - A detailed description of your problem or question with additional images where necessary - Your operating system - Version of Homarr (do not say latest! say 0.15.2, ...) Failure to comply with this will result in a permanent closure of your support request.
WheresWaldo79
WheresWaldo79OP3w ago
Docker Compose: homarr: container_name: homarr image: ghcr.io/homarr-labs/homarr:latest volumes: - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration - ${VOL_BASE}/standardApps/homarr/appdata:/appdata environment: - SECRET_ENCRYPTION_KEY=${HOMARR_SECRET} ports: - ${P_HOMARR}:7575 restart: unless-stopped Ubuntu 24.04.2 LTS Homarr - Version 1.19.0
WheresWaldo79
WheresWaldo79OP3w ago
No description
Manicraft1001
Manicraft10013w ago
Thank you. What did you ${VOL_BASE} set to? ~/docker?
WheresWaldo79
WheresWaldo79OP3w ago
VOL_BASE=/home/username/docker which is the same as what you wrote ~/docker
Manicraft1001
Manicraft10013w ago
Are you sure that it's being replaced correctly? Docker might auto-create a volume and persist itself when you do not mount yourself
WheresWaldo79
WheresWaldo79OP3w ago
After stopping the container I delete the DB I then started it back up A new file shows up ~db.sqlite Seems to have all the info in it like all icons and layout
Manicraft1001
Manicraft10013w ago
Does the new DB file have the same size as the old db file you are deleting? Make some changes (e.g. create an admin) before you delete the old DB
WheresWaldo79
WheresWaldo79OP3w ago
sorry... I had deleted the ~db.sqlite file It hasn't come back and the folder is empty now but the HOMARR still seems to be working. I tried a full docker compose down and then up -d
Manicraft1001
Manicraft10013w ago
Then you're likely looking at the wrong docker compose file and your container is created from a different compose file. Please check all ports and your containers. The changes we made should cause Homarr to re-start at the onboarding.
Solution
WheresWaldo79
WheresWaldo793w ago
Well... Thank you for your time. I figured out the issue. The .env file had been changed in the background. I re-edited it and it worked.
Manicraft1001
Manicraft10013w ago
Glad you got it working. Can I mark this as resolved then?
WheresWaldo79
WheresWaldo79OP3w ago
Yes please

Did you find this page helpful?