In these times of increasing cyber attacks..
Is it possible to schedule backup of all my Switch Flows, lets say like 'Once a week''?
Scheduled Flow Backup
- magnussandstrom
- Advanced member
- Posts: 356
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Scheduled Flow Backup
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
Re: Scheduled Flow Backup
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.
C:\Users\theUserName\AppData\Roaming\Enfocus\Switch Server\flows
Just a bunch of XML-files.
Re: Scheduled Flow Backup
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.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
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.
Re: Scheduled Flow 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.patej wrote: ↑Thu Mar 31, 2022 9:41 amWe 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.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
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.
Since doing that we've been able to replicate what happens when you export flows manually
Re: Scheduled Flow Backup
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?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
- magnussandstrom
- Advanced member
- Posts: 356
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Scheduled Flow Backup
Thanks for the input! Now I have some options to consider.