Backup and Restore
The Backup and Restore script allows you to create backups of your Termux environment and restore them when needed.
Usage
To run the backup and restore script:
Features
- Create a backup of your Termux environment
- List available backups
- Restore from a selected backup
- Delete old backups
Menu Options
- Create a new backup
- List available backups
- Restore from backup
- Delete a backup
- Return to main menu
Backup Contents
The backup includes:
- Home directory contents (excluding large directories like storage and downloads)
- Termux configuration files
- List of installed packages
Backup Location
Backups are stored in the ~/termux_backups
directory by default. You can change this location in the config.sh
file.
Restore Process
When restoring from a backup:
- The script will warn you that the restore process will overwrite your current Termux setup.
- You'll need to confirm before the restore process begins.
- After restoration, you'll need to restart Termux for all changes to take effect.
Customization
You can modify the backup and restore process by editing the bin/backup_restore.sh
file. For example, you can change which directories are included in the backup or add additional steps to the restore process.