Closed pedrolamas closed 2 months ago
I like the idea of adding the version to it, that makes complete sense to me!
Confirming if it is a Fluidd backup or not is tricky, as this is just a JSON file... granted we could have some schema to check against but that makes versioning very tricky!
Well, using a fluidd
key we could at least check if that's there - not a high chance a random json file will have one ;) No need to validate the entire schema IMO
Well, using a
fluidd
key we could at least check if that's there - not a high chance a random json file will have one ;) No need to validate the entire schema IMO
Agreed! 🙂
Following the comments, I made output filename is now "backupfluidd
The JSON blob is now using this format:
{
"meta": {
"app": "Fluidd",
"version": "1.2.3",
"type": "settings-backup"
},
"data": {}
}
We will verify that meta.app === 'Fluidd'
and that meta.type === 'settings-backup'
so that we can match the expected format!
Should be enough to validate the expected format and that version will allow us flexibility in the future if we want to!
Good Job!, great job!
Add a new Backup and Restore buttons to easily export and import Fluidd settings across multiple printers.
As a first implementation, this will backup/restore ALL Fluidd settings (there is no selections of specific parts of the settings).
Resolve #1113