-
|
I'm a klutz, and I'm sure I just did something wrong. I installed the newest version of PG2 using a Docker command, and everything worked great, except my albums were gone. How do I make sure I don't do this again with future updates? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
If you create an album using the web gui there is a button at the bottom called "To .pg2conf". That will output the JSON format of the search query that you created. You can then take that and paste it into a file called .saved_searches.pg2conf in the root of the folder where your pictures are stored. I edit the file via Nextcloud (since thats how I upload my pictures) and PiGallery2 picks up the file. I've done many PG2 upgrades and have not "lost" a search query. [
{
"name": "entire family saved search query",
"searchQuery": {
"type": 1,
"list": [
{
"type": 105,
"text": "person1 name",
"matchType": 1
},
{
"type": 105,
"text": "person2 name",
"matchType": 1
},
{
"type": 105,
"text": "person3 name",
"matchType": 1
},
{
"type": 105,
"text": "person4 name",
"matchType": 1
}
]
}
}
] |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! That's very good to know. I'll save all of my searches to file from now on. |
Beta Was this translation helpful? Give feedback.
If you create an album using the web gui there is a button at the bottom called "To .pg2conf". That will output the JSON format of the search query that you created. You can then take that and paste it into a file called .saved_searches.pg2conf in the root of the folder where your pictures are stored.
I edit the file via Nextcloud (since thats how I upload my pictures) and PiGallery2 picks up the file. I've done many PG2 upgrades and have not "lost" a search query.
[ { "name": "entire family saved search query", "searchQuery": { "type": 1, "list": [ { "type": 105, "text": "person1 name", "matchType": 1 }, { …