8000 GitHub - rc-chuah/termux-backup: A Rust program to backup and restore your Termux home and sysroot directories. · GitHub
[go: up one dir, main page]

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

57 Commits

Folders and files

Repository files navigation

termux-backup

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

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
    Or
    git clone https://github.com/RaynerSec/termux-backup
  3. Change directory:
    cd termux-backup
  4. Build the release binary:
    cargo build --release
  5. Run the program:
    ./target/release/termux-backup
  6. Optional: Install to PATH
    cp target/release/termux-backup $PREFIX/bin/termux-backup
    chmod +x $PREFIX/bin/termux-backup
    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 (Mirror 1)

Star History Chart

Star History (Mirror 2)

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

0