Is is possible to merge two stash installations together? To save the import/phash etc.. ?
I have two setups, both in docker and with an external “blob” folder, and of cause a medata area “generated” folder with screenshots etc..
AFAIK it’s not a part of the standard GUI, so it will involve some sqllite export and import I guess.. but that may just be the easy part.. what about the blobs and metadata?
My first idea was to copy the blob and medata to other folders, and just modify the locations in the database before merging them together… But I just wanted to know if someone else have done this before I give it a try…
So the generated folders have a file name that is the hash of the file so usually the ohash. If you have generated animated image previews for your scenes you can just merge the files and when stash has a file with the same hash you will get the animation.
To move the metadata I would custom scraper to scrape your old instance.
In your new stash instance go to the scrapers folder and create a stash-old.yml text file with the following contents pointing to the ip address and port of your old stash.
name: stash-old
performerByName:
action: stash
performerByFragment:
action: stash
sceneByFragment:
action: stash
stashServer:
url: http://192.168.0.23:9999
Reload the scrapers and you should get stash-old in the list of scrapers. You should be able to use the tagger view and get a list of scenes where you can select the scraper and run the scrape all task.