Skip to content

Python script for backing up Pythonista scripts on iOS. Simple backups of Pythonista folders allowing easy transfer to other devices.

License

Notifications You must be signed in to change notification settings

ConnerWill/iBackup-Pythonista

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iBackup-Pythonista.py

Create Backups of Python Scripts in Pythonista iOS App

Python script for backing up Pythonista scripts on iOS. Simple backups of Pythonista folders allowing easy transfer to other devices.

GitHub last commit GitHub issues GitHub repo size GitLab GitHub GitHub Repo stars


Features

[✔] Easily create backups of all Pythonista scripts compressed to a zip archive.

[✔] Simple configuration of backups using a configuration file.

[✔] Share backup to prefered location.

[✔] Exclude/include files and folders from being backed up.

[___] Autonomous transfer of backups.


Table of Contents

Click to expand!

How To Use

Installation

  1. Download or clone iBackup-Pythonista
  2. Edit the configuration file iBackup-Pythonista.cfg to your preference
  3. Run iBackup-Pythonista.py to start the backup

An even easier method of installing this script is to install StaSH. Then, git clone this repository

git clone https://github.com/ConnerWill/iBackup-Pythonista.git

Configuration

Configuration Variables

BackupDir : Root folder from where to start the backup. All subfolders will be backed up [string]

ExcludeList : List of folders to not backup [string] (eg. Backups, tmp)

ArchiveDir : Location to save the backup [string]

ArchiveName : Name of the backup [string]

OpenInQuickLook : After backup has finished, open 'quicklook' [bool]

Configuration File

Click to expand configuration file contents
# Folder to backup
[BackupFrom]
BackupDir = ~/

# List of folders to exclude from backup
[Exclude]
ExcludeList = local-packages, Backups, tmp, Documents/tmp, Documents/tmp, Documents/Backups, .Trash, Documents/.Trash

# Location and name of the backup archive.
# Folder will be created if it doesn't exist and 
# is automatically excluded from the backup.
# The current date will be prepended to 'ArchiveName'.
[BackupTo]
ArchiveDir = Backups
ArchiveName = iBackup-Pythonista.zip

# Open QuickLook when backup is complete. (Leave as True for now, planning on adding automatic transfers/sharing) 
[Sharing]
OpenInQuickLook = True

# Output colors (R, G, B)
[Colors]
ErrorColor = 1.0, 0.0, 0.0
StartColor = 0.0, 1.0, 1.0
SuccessColor = 0.0, 1.0, 0.0
InfoColor = 0.0, 0.0, 1.0
ProgressColor = 0.7, 0.7, 0.0

# Output font
[Fonts]
TextFont = Anonymous Pro

Other

iBackup-Pythonista was writted for the iOS app, Pythonista.

Install Pythonista from the iOS app store.

** This script is still a work in progress. Use this script at your own risk! **

  • *Tested on iPhone 7/8 *

  • iOS 15.0.1

  • *Pythonista Version 3.3 *


About

Python script for backing up Pythonista scripts on iOS. Simple backups of Pythonista folders allowing easy transfer to other devices.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages