-
Notifications
You must be signed in to change notification settings - Fork 266
How to backup and move Linux distro to another device
First of all, if you don't know yet, the distro is located at /data/data/com.termux/files/home.
If it is Ubuntu, the folder is /data/data/com.termux/files/home/ubuntu-fs, if it is Arch Linux, the folder is /data/data/com.termux/files/home/arch-fs , same for the rest, you can find the folder by running ls command.
Let's take Ubuntu for example:
If you look at this file: ubuntu.sh, you would found out the installer file create three things:
-
ubuntu-fs
-
ubuntu-binds
-
start-buntu.sh
Now let's start backup!
-
Open Termux, and run
pkg install tar
if you haven't done yet. -
Run this command to backup Ubuntu:
tar -cvf backup-ubuntu.tar.gz ubuntu-fs ubuntu-binds start-ubuntu.sh
-
Then you may need to copy backup-ubuntu.tar.gz to sdcard, to do this, run this command:
cp backup-ubuntu.tar.gz /sdcard
-
Transfer the file to sdcard of new device.
-
Open Termux and install tar following step 1.
-
Run this command to copy backup file into Termux directory:
cp /sdcard/backup-ubuntu.tar.gz /data/data/com.termux/files/home
-
Extract it and remove the backup file:
tar -xzvf backup-ubuntu.tar.gz && rm backup-ubuntu.tar.gz
-
Run your distro by using
./start-ubuntu.sh
*Documentation
- Arch Linux/ corrupted packages with invalid gpg key
- How to start and stop the distro
- How to use /sdcard
- How to setup OpenSSH Server
- How to start and stop the VNC Server (Desktop Environment)
- How to connect to VNC Server
- How to change the resolution of VNC Server
- How to backup and move Linux distro to another device
- Is it possible to install multiple distro on a device ?
- Guide to solve Proot signal 6, or function not implemented error
- Rooted users: How to solve pulseaudio error
- vncserver-start:-command-not-found