Page 1 of 1

Is there a way to recover a workflow that I accidentally deleted?

Posted: Sun Jun 23, 2024 2:37 pm
by amdx
I feel a bit silly, but I deleted a workflow from FFAStrans, and now I would like to restore it.
I guess I could rebuild it from the logs, but is there any autosave, backup save, or a way to recover a deleted workflow?
Thanks for any pointers!

Re: Is there a way to recover a workflow that I accidentally deleted?

Posted: Mon Jun 24, 2024 11:02 am
by emcodem
There are 2 points of interest for restoring workflows:
Each submitted job has a copy of the workflow in the job_log folder. You can open the log dir of each job from the job monitor by right-click. Example:
c:\FFAStrans1.3.1\processors\db\cache\jobs\20240423-1703-2759-7bcf-abd1c5372d4c\workflows

Also, we have a backup before each and every change of the workflow:
c:\FFAStrans1.3.1\FFAStrans1.3.1\Processors\db\configs\archive

Example, if you find what you look for in
\db\configs\archive\workflows\20240208-0057-2611-3e2b-c17701ddd522

Then you grab the youngest backup, rename it to the wf_id: 20240208-0057-2611-3e2b-c17701ddd522.json
and copy it back to the main workflows folder db\configs\workflows


Notice that in both scenarios, you might need to restore the user_variables.json as well from configs\archive\user_variables to
Processors\db\configs or create the user_variables the wf uses manually again.

Re: Is there a way to recover a workflow that I accidentally deleted?

Posted: Tue Jun 25, 2024 3:02 pm
by amdx
Hi Emcodem,
thank you very much for your pointers. They really help me understand how the software works!