Page 1 of 1

export, edit and import preset

Posted: 27 Jun 2025, 04:27
by bonelifer
I have a Lidarr docker(under Xubuntu 22.04). I have setup a Dockerfile to add the portable Filebot download to the docker image and install all the needed dependencies via Alpine apk in the Dockerfile. All works great, including adding the license afterwards with a bash script. I'd like to export a single preset(from my bare metal install), change the directory to match the "inside" docker path, and import it into the docker install of Filebot. How would I export/then import my bare metal created preset into this essentially headless install. Heads up, I'm just a regular docker user, these changes where made for me by AI. I just can't get this last part correct by using AI. Otherwise it's installed and I'm able to see help and version from Portainer console.

Re: export, edit and import preset

Posted: 27 Jun 2025, 05:00
by rednoah
If you're using the GUI and want to import / export Presets then you can do that via Backup and Restore Settings.

If you're using the CLI then everything is in the command-line call that you can just copy & paste from one machine to another.

Re: export, edit and import preset

Posted: 27 Jun 2025, 06:07
by bonelifer
Can I just dump those in the ~/.filebot folder?

Re: export, edit and import preset

Posted: 27 Jun 2025, 06:31
by rednoah
bonelifer wrote: 27 Jun 2025, 06:07 Can I just dump those in the ~/.filebot folder?
I recommend using the Export User Data and Restore User Data buttons:

Screenshot



:idea: If you just copy the underlying storage then it might work, or it might not, or it might work partially. Your live settings are stored via system preferences, e.g. Registry on Windows, UserDefaults on macOS, etc. FileBot may be configured to store system settings to a *.json file if you're using the portable package.

:arrow: If you're using the standard Linux package, then system preferences are likely stored in the $HOME/.java/.userPrefs file structure:
https://stackoverflow.com/a/1320798/1514467

Re: export, edit and import preset

Posted: 27 Jun 2025, 07:03
by bonelifer
No GUI on the Lidarr docker image. Host system is Xubuntu. I exported with button. By dump I meant from the export file.

Re: export, edit and import preset

Posted: 27 Jun 2025, 08:49
by rednoah
You can import / export preferences from the command-line like so:
rednoah wrote: 08 Oct 2016, 07:34 Export preferences:

Shell: Select all

filebot -script fn:preferences --output /path/to/folder
Import preferences:

Shell: Select all

filebot -script fn:preferences /path/to/preferences.xml


EDIT:

Note that if you’re using the CLI then there are no Presets since Presets is a GUI feature. On the CLI you’d just copy and paste the command, or create your own shell script file that calls filebot with your preferred options (e.g. amc.sh).