Page 1 of 1

More intelligent backup

Posted: 24 Dec 2014 10:37
by Wibbly
The File Observer trigger seems to suggest/confirm that flows.xml is updated every time any flow executes.

Can there be a trigger for when flows (or indeed the widgets file) have actually been edited/changed (by me)? I would use this to trigger a backup of the Automagic folder, rather than having a simple periodic backup. Thus when I'm editing flows I could have a proper and up-to-date version history not littered with 'versions' of my Automagic folder that were stored just as a result of flows executing as normal?

Re: More intelligent backup

Posted: 24 Dec 2014 12:00
by MURTUMA
This flow triggers, when you exit flow editor. Add some conditions or change the trigger activity to suit better your needs.

http://automagic4android.com/flow.php?i ... de9d8e7020

Re: More intelligent backup

Posted: 24 Dec 2014 12:46
by Wibbly
Thanks - will take a look :)

Re: More intelligent backup

Posted: 24 Dec 2014 13:27
by Wibbly
Hmm. Seems to work for now but there's note for that trigger that it's unreliable with Lollipop, so I don't want to rely on it.

Request remains :-)

Re: More intelligent backup

Posted: 02 Jan 2015 18:47
by Wibbly
Wibbly wrote:Hmm. Seems to work for now but there's note for that trigger that it's unreliable with Lollipop, so I don't want to rely on it.

Request remains :-)
Is there a reason why "activity_ended" should be unreliable? If it works with my phone, will it be reliable on my phone?

Re: More intelligent backup

Posted: 05 Jan 2015 20:36
by Martin
Sometimes events can be missed so activity ended will not be triggered in all cases. Unfortunately there's not much I can do about this trigger since Google decided to remove some APIs in Lollipop that have been used for this purpose before.

Re: More intelligent backup

Posted: 05 Jan 2015 21:37
by Wibbly
Can a new trigger be added to support the specific need to back up flows/widgets - triggers only when flows or widgets are edited by the user?