Skip to content

Instantly share code, notes, and snippets.

View LawnGnome's full-sized avatar

Adam Harvey LawnGnome

View GitHub Profile
@inhies
inhies / twrp.sh
Last active February 25, 2024 03:13
Creates TWRP compatible backups over USB using ADB without any files ever touching your SD card.
#!/bin/bash
#
# Version 1.4
#
# twrp.sh -- a TWRP compatible backup script for your computer
# Brought to you by inhies
#
# This script creates TWRP compatible backups over usb using adb and magikz
# By default it makes a folder in the standard TWRP date--time format (I think)
# To restore these backups, place the folder in /sdcard/TWRP/BACKUPS/<serialnumber>/