Multiple Stash databases/instances #2703
-
I searched different keywords but couldn't find a similar question in the repository. Sorry if i overlooked and missed one. Is it possible to use different databases/instances similar to Adobe Lightroom catalogs and switch from one database to another? In other words, i'd like to create different databases for different genres. Let's say one database for just professional softcore studios, one for just hardcore, one for just JAV stuff etc. Is there a way or workaround to achieve this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
Yes, it is possible to run multiple instances. I currently run 3. I use Windows though, so I'm not sure how different it is amongst OS's. I just name the .exe's different names and then you need to have a config.yml with updated info on where the new things will be placed. It's been over a year since I set it up so I can't remember completely how you do it, but I'm sure someone on the discord...or here could help you out further. |
Beta Was this translation helpful? Give feedback.
-
I would use three different folders ... one for each instance. The important thing is to just use different ports for each I guess. |
Beta Was this translation helpful? Give feedback.
-
Currently using Windows 10. I copied stash-win.exe to another folder and renamed it to stash-win2.exe but couldn't figure a way to duplicate config.yml AKA these parameters without messing the current settings. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Here is what I would do: You may change other paths and settings here too if needed. Just don't delete any spaces or change the layout of the file or it can't be read by stash. |
Beta Was this translation helpful? Give feedback.
-
Thanks for suggestions. I've found a way to do separate collections. Looks a little bit messy but oh well, it works at the end of the day :) I duplicated the original config.yml and modfied the duplicate config.yml file based on @HereIam80's post (separate folders for the genre under the main folder and gave a different name to the default .sqlite database --> JAV.sqlite) Then i renamed the original config.yml to something else and the modified one to config.yml. Ran stash-win.exe with the modified config.yml and voila! A fresh Stash instance and a JAV.sqlite file was waiting for me. From now on i'll just rename and use the relevant config.yml files to switch between databases. Thanks again for suggestions, appreciated. |
Beta Was this translation helpful? Give feedback.
-
Another hint. You can use different config files with the command |
Beta Was this translation helpful? Give feedback.
-
Oh that's cool. Also i tried your "different stash folders" idea and it worked too 👍 I am using stash since default config.yml file had to be under |
Beta Was this translation helpful? Give feedback.
-
The reason why I would run it in different folders and with different config.yml and .exe files is so I could run multiple instances at once and just browse to the one I need with Anyway ... good you got it working. |
Beta Was this translation helpful? Give feedback.
-
I’m running two instances in docker and it works great. I set the same login credentials on both, so I only have to log in once and use links to hop between them |
Beta Was this translation helpful? Give feedback.
Here is what I would do:
Make another folder and put the stash-win.exe and also copy the config.yml in there.
Edit the config.yml with notepad or something and change the following lines:
database: New path to your new database
port: 9998 (or whatever free port you have)
You may change other paths and settings here too if needed. Just don't delete any spaces or change the layout of the file or it can't be read by stash.
Start the exe and browse to http://localhost:9998 or whatever port you chose.
Done.