Python script for backing up Pythonista scripts on iOS. Simple backups of Pythonista folders allowing easy transfer to other devices.
[✔] 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.
Click to expand!
- Download or clone iBackup-Pythonista
- Edit the configuration file iBackup-Pythonista.cfg to your preference
- 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
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]
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
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 *