Editorial Workflows

Workflow Backup...

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Saves or restores a backup of all Editorial workflows in Dropbox (this requires the Dropbox account to be linked).

Shared by: @olemoritz

Comments: Comment Feed (RSS)

anonymous — 29 May 2014
Could this save to a …/Backups folder?
@olemoritz — 30 May 2014
Theoretically yes, but that would require that the Backups folder already exists, and it's currently not possible to create new Dropbox folders programmatically.
@dahanbn — 03 Aug 2015
As it seems it doesn't back the templates as well? Could it be possible that templates also will be backed up and can be restored in a future version?
Stefan Wolfrum — 30 May 2016
Unfortunately, this workflow won't import the backup I made two months ago. 😒
The backup ZIP file resides in /Apps/Editorial/ and it isn't greyed out anymore because I tapped (and therefore downloaded) it.
However, the Restore part of the workflow can't find it ("No Backups Found"). 😒
Anything I can do about it, Ole?
Stefan Wolfrum — 30 May 2016
UH! OH!
My bad! I have an *EDITORIAL* backup file – not a *WORKFLOWS* backup file!
So please ignore my last comment. 😳
Johnf307 — 09 Apr 2017
Hello! Someone in my Facebook group shared this website with us so I came to check it out. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers! Outstanding blog and superb design and style. ekdbaddbdgee
Pharmc289 — 09 Apr 2017
doser — 11 Apr 2017
Lot glands my clomid for sale online my excellent - if i doser viagra does it work prescription on line summer.
price — 11 Apr 2017
Generic cheapest price generic cialis canadian, cialis dosages available is there a generic for cialis .
someone — 11 Apr 2017
cialis — 19 Apr 2017
american_cialis — 19 Apr 2017
day — 20 Apr 2017
buy_cialis — 20 Apr 2017
I loved your post.Much thanks again.
buy_cialis — 20 Apr 2017
Hello!
buy cialis ,
cheap_viagra — 23 Apr 2017
Do you have a spam problem on this site I also am
cheap_cialis — 26 Apr 2017
Pharmk546 — 27 Apr 2017
Hello! decekef interesting decekef site! I'm really like it! Very, very decekef good!
Pharmk226 — 27 Apr 2017
Very nice site! [url=http://ypxoiea.com/qyvosq/2.html]cheap cialis[/url]
Pharme759 — 27 Apr 2017
Very nice site! [url=http://ypxoiea.com/qyvosq/50/a1a.html]cheap cialis[/url] , [url=http://ypxoiea.com/qyvosq/50/a2a.html]cheap cialis[/url] , [url=http://ypxoiea.com/qyvosq/50/a3a.html]cheap cialis[/url] , [url=http://ypxoiea.com/qyvosq/50/a4a.html]cheap cialis[/url] , [url=http://ypxoiea.com/qyvosq/50/a5a.html]cheap cialis[/url] ,
Michael — 29 Apr 2017
I do accept as true with all of the concepts you have offered in your post. They're really convincing and will definitely work. Still, the posts are very brief for beginners. May you please extend them a little from next time? Thanks for the post.
cialis — 21 May 2017
Hello, Neat post. There's a problem with your web site in web explorer, may test thisK IE still is the market leader and a large component to people will leave out your magnificent writing due to this problem.
buy — 21 May 2017
Hello, Neat post. There's a problem with your web site in web explorer, may test thisK IE still is the market leader and a large component to people will leave out your magnificent writing due to this problem.
cialis — 21 May 2017
Hello, Neat post. There's a problem with your web site in web explorer, may test thisK IE still is the market leader and a large component to people will leave out your magnificent writing due to this problem.
cialis — 21 May 2017
loans| — 26 May 2017
cialis — 26 May 2017
Hello!
cialis ,
cialis_cheap — 28 May 2017
Hello!
cialis cheap ,
cialis|generic — 30 May 2017
canadian — 07 Jun 2017
viagra — 15 Jun 2017
order_cialis — 17 Jun 2017
payday_loans — 28 Jun 2017
viagra — 28 Jun 2017
viagra_online — 15 Jul 2017
cheap_viagra — 01 Aug 2017
cash — 07 Aug 2017
payday — 09 Aug 2017
Beulah — 21 Aug 2017
best place buy viagra online forum
viagra 100mg
herbal viagra sale uk
Sherita — 25 Aug 2017
buy cialis tadalafil
cialis generic
cialis super active for sale
personal — 03 Sep 2017
cialis — 12 Sep 2017
payday — 19 Sep 2017
Lukas — 25 Sep 2017
cheap cialis canadian pharmacy
what is generic for cialis
brand cialis for sale
cialis — 26 Sep 2017
Norberto — 26 Sep 2017
loans quick and easy
1000 loans
easy personal loan
Roscoe — 26 Sep 2017
loans on line
payday loan no broker
internet cash advance
Callie — 29 Sep 2017
payday loans north augusta sc
american cash advance
rapid payday loans
Lois — 03 Oct 2017
http://www.ardawest.eu/?option=com_k2&view=itemlist&task=user&id=66998 -
auto insurance tn
auto insurance dallas tx
auto insurance travelers
Klara — 04 Oct 2017
how can i get a personal loan
cash advance loans las vegas
personal loans in michigan
Patrice — 05 Oct 2017
viagra sale spain
viagra 50 mg
order viagra online paypal
Alphonso — 06 Oct 2017
personal loans for bad credit not payday loans
best payday loans
american financial loans
Winifred — 08 Oct 2017
auto insurance nm
auto owners insurance
auto insurance safeco
the general car insurance
Grady — 09 Oct 2017
fast payday loans
online payday loan
quick payday loans
advance payday loans
Eloise — 11 Oct 2017
zithromax prices
zithromax 500 mg
zithromax z pak cost
buy zithromax online
Monika — 15 Oct 2017
car insurance companies
cheap car insurance
car insurance companies
auto owners insurance
viagra_cheap — 19 Oct 2017
Shannon — 23 Oct 2017
payday loans online no credit check
payday loans no credit check
cash advance loans
cash loans
Elvira — 26 Oct 2017
casino games
real money casino
online roulette
blackjack online
Chauncey — 26 Oct 2017
same day loans
same day payday loans no credit check
payday advance online
online loan
cash — 28 Oct 2017
Alexis — 29 Oct 2017
300 free slots of vegas
liberty slots casino instant play
slotocash coupons
ruby slots
viagra — 03 Nov 2017
Gus — 10 Nov 2017
fast payday loans
bad credit payday loans
quick cash loans
loans
Juli — 10 Nov 2017
online loans
cash advance loans
payday loans online
online loan
Joan — 14 Nov 2017
online casino 888 roulette
online free slots x12
online slots jackpot party
online roulette hacks
cialis_canada — 23 Nov 2017
online_viagra — 23 Nov 2017
super — 01 Dec 2017
viagra_cheap — 07 Dec 2017
cheap_cialis — 12 Dec 2017
Launa — 12 Dec 2017
can you buy viagra ebay
viagra without a doctor prescription
cheap viagra pills
payday_loans — 16 Dec 2017
Jessika — 18 Dec 2017
online casino games
casino games
online casino
casino games list
online casino games
buy_cialis — 18 Dec 2017
Tony — 20 Dec 2017
payday loans online
loans online
payday loans no credit check
online loans
Cristina — 20 Dec 2017
loans online instant approval
payday loans bad credit
trusted payday loans online
trusted payday loans online
Abbie — 20 Dec 2017
loans online instant
money mutual
best fast loans online
payday loans
Matthew — 21 Dec 2017
casino online
online casino games
casino online usa
online casino
casino games
cialis_online — 22 Dec 2017
cialis — 26 Dec 2017
cialis_online — 26 Dec 2017
cialis_cheap — 31 Dec 2017
cialis — 31 Dec 2017
Catalina — 03 Jan
payday loans no credit
loans online
payday loans online no credit check
loans online
loans no credit check
Tania — 03 Jan
loans no credit
payday loans no credit check
loans no credit
payday loans
payday loans no credit
cialis — 07 Jan
Mitchel — 07 Jan
free slot games
free slot games
slots for free
casino games slots
online casinos
cialis — 08 Jan
buy_cialis — 10 Jan
Carina — 11 Jan
loans no credit
payday loans no credit
payday loans online no credit check
payday loans online no credit check
loans no credit check
Shenna — 2 days ago
new usa online casinos
play casino games online
casino games slots
casino online subtitrat
Kathie — 1 day ago
online casino slots
casino g
casino games
casinos online
Marla — 1 day ago
online casino
casino online
casino online
casino games
real money casino

+ Add Comment

Workflow Preview
Show Alert ?
Title
Create or Restore?
Message
The backup of your workflows will be created as a zip file in your Dropbox (Workflows_Year: 2001_Month: 01_Day: 01-Hour: 01 (24h)_Minute: 01.zip).
Button 1
Create Backup
Output Value
backup
Button 2
Restore...
Output Value
restore
Button 3
(don't show)
Output Value
Show Cancel Button
ON
Set Variable ?
Variable Name
Action
Value
Input
If "Backup" was selected... ?
Run the block if
Action
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
backup
Create the Backup (Python) ?
Source Code
#coding: utf-8
import workflow
import editor
import os
from zipfile import ZipFile
import datetime
from io import BytesIO

t = datetime.datetime.today()
backup_filename = 'Workflows_' + t.strftime('%Y_%m_%d-%H_%M') + '.zip'
wf_path = editor.get_workflows_path()
files = os.listdir(wf_path)
zip_buffer = BytesIO()
with ZipFile(zip_buffer, 'w') as z:
	for filename in files:
		name, extension = os.path.splitext(filename)
		if extension in ('.wkflw', '.edcmd'):
			z.write(filename)
	
zip_data = zip_buffer.getvalue()
editor.set_file_contents(backup_filename, zip_data, 'dropbox')
Show HUD ?
HUD Text
Backup Created
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
…End If
If "Restore" was selected.... ?
Run the block if
Action
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
restore
List Backups (Python) ?
Source Code
#coding: utf-8
import workflow
import editor
import os
import re

wf_path = editor.get_workflows_path()
db_path = os.path.join(os.path.split(wf_path)[0], 'Dropbox')

backups = []
files = os.listdir(db_path)
for filename in files:
	if re.match('Workflows_.*\\.zip$', filename):
		backups.append(filename)
workflow.set_output('\n'.join(backups))
Stop if no backups are found... ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Show Alert ?
Title
No Backups Found
Message
No backup files were found. You might need to download them first, if you see grayed-out backup files in your Dropbox folder.
Button 1
OK
Output Value
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
Select from List ?
Title
Select a Backup
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
OFF
Show Warning Alert ?
Title
Warning
Message
This will replace all your workflows with the ones that are stored in the selected backup (Input).
Button 1
Continue
Output Value
Input
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
ON
Restore the Backup (Python) ?
Source Code
#coding: utf-8
import workflow
import editor
from os import path
from zipfile import ZipFile

backup_filename = workflow.get_input()
db_path = path.join(path.split(editor.get_workflows_path())[0], 'Dropbox')
backup_path = path.join(db_path, backup_filename)

with ZipFile(backup_path, 'r') as z:
	z.extractall(editor.get_workflows_path())

editor.reload_workflows()
Show HUD ?
HUD Text
Backup Restored
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
…End If