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

Questions and answers on how to get the most out of FFAStrans
Post Reply
amdx
Posts: 5
Joined: Sun Jun 16, 2024 10:28 am

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

Post 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!
emcodem
Posts: 1686
Joined: Wed Sep 19, 2018 8:11 am

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

Post 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.
emcodem, wrapping since 2009 you got the rhyme?
amdx
Posts: 5
Joined: Sun Jun 16, 2024 10:28 am

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

Post by amdx »

Hi Emcodem,
thank you very much for your pointers. They really help me understand how the software works!
Post Reply