-
Hello I'm new to using Homebox and Docker so apologies for my ignorance. I had ~50 items with added pictures and other attachments in my Homebox and exported to a CVS file. I also backup the homebox-data folder as well. My docker was not installed quite right as I followed some Youtube tutorial a while back. So I decided to do a complete purge of docker and re-install it from scratch following the official Docker documentation. I got it up and running again, installed Homebox, and used 'Import Inventory' option under 'Tools'. It pulled up all my item data just fine, but none of the pictures or other attachments. I see under the 'homebox-data' directory there is 'documents' folder buried in there that are full of pictures and pdf files I've uploaded, albeit with a bunch of funky file names. If you didn't notice, I'm kind of a dumbass with these sorts of things Is there an easy fix for this or am I resigned to have to manually re-upload all the attachments? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think (I don't have a way to confirm now), the file names are just the attachment ids. If you still have the original database, it should be possible to get the item they are associated with, and then find a matching item in the new database with the same name (this wont work properly if your item names are not unique though) and then upload it as an attachment for it/insert it into the database. But it will require writing some SQL/code to interact with the API. It might also take you longer to get this working than it would take to just do it by hand. You could of course just try putting the entire original database in to your new docker instance with all the files. Which is probably the fastest way. But no idea how well that will work. Just make sure you back it up first. |
Beta Was this translation helpful? Give feedback.
I figured it out!
It turns out when I initially installed Homebox some time ago, I did not use the default volume location (homebox-data:/data/) in the docker compose file. I had the volume set to /home/docker, as per the video tutorial I followed at the time. That's why none of the attachments were loading. FML.
Thanks for the answers guys!