Login About Gallery
Backup & Restore Shortcuts
COMMENT
‎Backup and Restore Shortcuts Created by @robric18 Version 1.2 tweaked by @mvan231
TEXT
‎{ "Shortcut Name":"Backup and Restore Shortcuts", "Author":"Robric18", "Current Version":"1.2", "RoutineHub ID":"3923", "What's New":"added mvan231's tweaks" }
SCRIPTING
‎Get dictionary from ‎Text
VARIABLES
‎Set variable ‎Update Info ‎to ‎Dictionary
SCRIPTING
‎Choose from Menu
SCRIPTING
‎Backup
SCRIPTING
‎Ask ‎Name of shortcut contains ... (leave blank to list all)
Input Type
‎Text
Default Answer
‎Text
SHORTCUTS
‎Get my shortcuts
FILES
‎Filter ‎My Shortcuts ‎where
‎[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'contains'}, {'class': 'filter-benchmark inline', 'value': [{'class': 'magic', 'value': 'Provided Input', 'glyph': '', 'UUID': '14EF7745-460C-4073-B1E7-BA6D7063CAF2'}]}]
Sort by
‎Name
Order
‎A to Z
Limit
SCRIPTING
‎Choose from Menu
SCRIPTING
‎No
SCRIPTING
‎Choose from ‎Files
Prompt
‎Select shortcuts to backup
Select Multiple
Select All Initially
SCRIPTING
‎Yes
SCRIPTING
‎Choose from ‎Files
Prompt
‎Select shortcuts to backup
Select Multiple
Select All Initially
SCRIPTING
‎End Menu
DOCUMENTS
‎Create Folder
Service
‎iCloud Drive
Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'value': 'Backups/', 'class': 'text'}, {'class': 'magic', 'value': 'Current Date', 'glyph': 'assets/cat/Date.svg', 'UUID': ''}]
DOCUMENTS
‎Save ‎Menu Result
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'value': 'Backups/', 'class': 'text'}, {'class': 'magic', 'value': 'Current Date', 'glyph': 'assets/cat/Date.svg', 'UUID': ''}]
Overwrite If File Exists
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
TEXT
‎File
SCRIPTING
‎If ‎Text ‎contains ‎Current Date
TEXT
‎File
SCRIPTING
‎Otherwise
SCRIPTING
‎If ‎File ‎has any value
TEXT
‎Current Date ‎File
SCRIPTING
‎Otherwise
TEXT
‎Current Date
SCRIPTING
‎End If
SCRIPTING
‎End If
DOCUMENTS
‎Save ‎If Result
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎/Shortcuts/Backups/ListOfBackupFolders.txt
Overwrite If File Exists
SCRIPTING
‎Show alert ‎Shortcuts Backed Up
Title
‎Shortcuts Backed Up
Show Cancel Button
SCRIPTING
‎Restore
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
TEXT
‎File ‎ Choose Folder
TEXT
‎Split ‎Text ‎by ‎New Lines
SCRIPTING
‎Choose from ‎Split Text
Prompt
‎Pick date of backup you want to retrieve
Select Multiple
SCRIPTING
‎If ‎Chosen Item ‎is ‎Choose Folder
MISSING
‎file.select Under Construction
SCRIPTING
‎Otherwise
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
FILES
‎Filter ‎File
Sort by
‎Name
Order
‎A to Z
Limit
SCRIPTING
‎Choose from ‎Files
Prompt
‎optional
Select Multiple
SCRIPTING
‎End If
TEXT
‎ 1) When you press OK a new screen will open asking you to create an iCloud link. Press "Create Link" 2) You will be taken to a screen with the link. Press "Get Shortcut" 3)You will be brought to the Add Shortcut page in shortcuts. You can change the name of the shortcut here if you desire. Scroll to the bottom of the page and press "Add Untrusted Shortcut" 4) Your backed up shortcut will now be restored to Shortcuts.
SCRIPTING
‎Show alert ‎Preparing to Restore Shortcut
Title
‎Preparing to Restore Shortcut
Show Cancel Button
DOCUMENTS
‎Get link to ‎If Result
SAFARI
‎Open ‎Link to File
SCRIPTING
‎End Menu
URL
‎https://routinehub.co/api/v1/shortcuts/ ‎Update Info ‎/versions/latest
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get dictionary from ‎Contents of URL
SCRIPTING
‎Get ‎Value ‎for ‎Version ‎in ‎Dictionary
SCRIPTING
‎If ‎Dictionary Value ‎is greater than ‎Update Info
TEXT
‎ You have version ‎Update Info ‎ of ‎Update Info ‎ installed. An update to version ‎Version ‎ is available. If you wish to update press OK. Otherwise press Cancel. What's New in this version? ‎Notes
SCRIPTING
‎Show alert ‎Update Available
Title
‎Update Available
Show Cancel Button
SAFARI
‎Open ‎URL
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
DOCUMENTS
‎Make ‎tar.bz2 ‎archive from ‎Menu Result
Archive Name
‎[{'class': 'magic', 'value': 'Current Date', 'glyph': 'assets/cat/Date.svg', 'UUID': ''}]
DOCUMENTS
‎Save ‎Archive
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'value': 'Backups/', 'class': 'text'}, {'class': 'magic', 'value': 'Current Date', 'glyph': 'assets/cat/Date.svg', 'UUID': ''}]
Overwrite If File Exists
DOCUMENTS
‎Delete ‎Saved File
Confirm Before Deleting

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 9 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0