Skip to content

About

A Rust program to backup and restore your Termux home and sysroot directories.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Latest commit

 

History

65 Commits

Folders and files

Repository files navigation

termux-backup

A Rust program to backup and restore your Termux home and sysroot directories.

Download Counter

GitHub all releases Crates.io - Downloads

Usage

How To Use termux-backup

Install from crates.io

  1. Install using Cargo:
    cargo install --locked termux-backup
    Or install with latest compatible dependency versions:
    cargo install termux-backup
    Or install using cargo-binstall:
    cargo binstall termux-backup
  2. Run the program:
    termux-backup

Build from source

  1. Install dependencies in Termux:
    pkg update -y && pkg install git rust tar gzip -y
  2. Git clone the repository:
    git clone https://github.com/rc-chuah/termux-backup
  3. Change directory:
    cd termux-backup
  4. Build the release binary:
    cargo build --release
  5. Install to PATH
    cp target/release/termux-backup $PREFIX/bin/termux-backup && chmod +x $PREFIX/bin/termux-backup
  6. Run the program:
    termux-backup

Notes

  • Backup only works in a normal Termux session.
  • Restore works in both normal and failsafe sessions.
  • Backups are stored at /storage/emulated/0/termux/backups.
  • The restore process in a normal session will clean the current Termux environment before restoring, keeping only essential core utilities needed for extraction.

Star History

Star History Chart

Credits

  • Original bash script by Zongou.
  • Rewritten in Rust by RC Chuah-(RaynerSec).

About

A Rust program to backup and restore your Termux home and sysroot directories.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages