Scheduled Flow Backup

Post Reply
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Scheduled Flow Backup

Post by magnussandstrom »

In these times of increasing cyber attacks..

Is it possible to schedule backup of all my Switch Flows, lets say like 'Once a week''?
mkayyyy
Member
Posts: 75
Joined: Mon Nov 21, 2016 6:31 pm
Location: UK

Re: Scheduled Flow Backup

Post by mkayyyy »

Either this app auto-save-plus or these flows github.com/open-automation/switch-flow-auto-backup can handle backing up flows. We use the latter with some custom scripts added to back up to AWS S3 every week
jan_suhr
Advanced member
Posts: 586
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: Scheduled Flow Backup

Post by jan_suhr »

You can do a normal backup of the folder they are stored in on disk:
C:\Users\theUserName\AppData\Roaming\Enfocus\Switch Server\flows

Just a bunch of XML-files.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
patej
Member
Posts: 79
Joined: Sun Nov 25, 2012 12:15 pm

Re: Scheduled Flow Backup

Post by patej »

mkayyyy wrote: Thu Mar 31, 2022 9:25 am Either this app auto-save-plus or these flows github.com/open-automation/switch-flow-auto-backup can handle backing up flows. We use the latter with some custom scripts added to back up to AWS S3 every week
We also use a modified version of that switch-flow-auto-backup flows, but unfortunately the result is not the same that you get when exporting flows manually. The problem is in the way that Switch logic has changed in using property sets e.g. for PitStop Server actions etc. but it's better than nothing and we haven't had the time to fully reverse-engineer what exporting does... I have requested (years ago..) an additional method for exporting flows to be added to Switch scripting, but I don't know if it's anywhere in the roadmap.

Of course, another good thing to have is an automated backup of the flows folder and/or whole data root folder so that you can restore the whole system if needed. By the way, the Data Root Backup program (on Windows) has never worked for us, it never finishes before crashing so we have to use other utilities for copying/backup.
mkayyyy
Member
Posts: 75
Joined: Mon Nov 21, 2016 6:31 pm
Location: UK

Re: Scheduled Flow Backup

Post by mkayyyy »

patej wrote: Thu Mar 31, 2022 9:41 am
mkayyyy wrote: Thu Mar 31, 2022 9:25 am Either this app auto-save-plus or these flows github.com/open-automation/switch-flow-auto-backup can handle backing up flows. We use the latter with some custom scripts added to back up to AWS S3 every week
We also use a modified version of that switch-flow-auto-backup flows, but unfortunately the result is not the same that you get when exporting flows manually. The problem is in the way that Switch logic has changed in using property sets e.g. for PitStop Server actions etc. but it's better than nothing and we haven't had the time to fully reverse-engineer what exporting does... I have requested (years ago..) an additional method for exporting flows to be added to Switch scripting, but I don't know if it's anywhere in the roadmap.

Of course, another good thing to have is an automated backup of the flows folder and/or whole data root folder so that you can restore the whole system if needed. By the way, the Data Root Backup program (on Windows) has never worked for us, it never finishes before crashing so we have to use other utilities for copying/backup.
I ended up spending a lot of time a few years ago writing scripts for our version of switch-flow-auto-backup to create all the property sets folders and inject the required files for each flow into them.

Since doing that we've been able to replicate what happens when you export flows manually
patej
Member
Posts: 79
Joined: Sun Nov 25, 2012 12:15 pm

Re: Scheduled Flow Backup

Post by patej »

mkayyyy wrote: Thu Mar 31, 2022 9:46 am I ended up spending a lot of time a few years ago writing scripts for our version of switch-flow-auto-backup to create all the property sets folders and inject the required files for each flow into them.

Since doing that we've been able to replicate what happens when you export flows manually
Interesting! We started doing that, but other things got prioritised over that... Any chance you could share those scripts so that we could adapt those into ours?
User avatar
magnussandstrom
Advanced member
Posts: 345
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Scheduled Flow Backup

Post by magnussandstrom »

Thanks for the input! Now I have some options to consider.
Post Reply