Are you tired of manually backing up all your files in Termux? Well, I have good news for you! In this blog post, I will share a snap Bash script that will make the backup process a breeze.
Before we install into the script, let’s understand how it works. This script uses the “tar” command to create a compressed archive of all the files in your Termux home directory. It then saves the archive to a specified location.
Install and use snap tool on termux
Step 1: Install Dependencies
The first step is to install the necessary dependencies for Termux backup tool. Open Termux and run the following commands:
pkg install python -y pkg install python2 -y pkg install git -y pip install lolcat
Step 2: Clone the Repository
Once Git is installed, we can clone the Snap repository. Run the following command:
git clone https://github.com/noob-hackers/snap.git
This command will create a new directory called ‘snap’ in your current directory and clone the repository into it.
Step 3: Navigate to the Directory
After cloning the repository, navigate to the ‘snap‘ directory using the following command:
This command will change your current directory to the directory.
Step 4: Run the Installation Script
Now, it’s time to run the installation script. Run the following command:
This script will install all the necessary dependencies and set up Snap on your Termux environment.
Once you run the script, you will be prompted to follow some on-screen instructions. These instructions will guide you through the process of backing up your files. Make sure to read and follow them carefully.
Backing up files in Termux has never been easier thanks to this handy Bash script. Now you can ensure the safety of your important files with just a few simple steps.