How to bakcup Android in Ubuntu without being root?

android-backup-ubuntu

Si you are a user of a smartphone or tablet with Android, surely at some point you have been offered to have to make a backup of your information (backup) in order to safeguard all vital information or even applications on your computer.

Generally we can find various tools in the PlayStore which offer us the power to bakcup our device, although the inconvenient start is that these applications ask you for super user privileges.

The other method of being able to make a backup of your information is through the help of recovery which is generally TWRP and also the drawback is that you have to change the recovery.img of your system and generally have super user permissions.

Can users backup without being root?

Many of the users do not root their computers because they simply do not have the knowledge or do not want to lose the warranty of their computers or simply because they do not require it.

And in these cases they will ask themselves, if I cannot use the backup applications, how can I make one?

Yes, if it is possible to be able to perform a security backup without having to be root and also without having to resort to additional applications.

How to backup Android?

In the first of the possible scenarios, We can back up our information with the help of applications offered by our team companies.

A practical example is the Kies application for Samsung devices. With these administrators they allow us the way to perform a bakcup.

The only drawback is that these applications are generally only available for Windows.s, so for Linux users we could only use them with the help of Wine.

And the case is not this, we can choose another alternative which we can use from the terminal.

Backing up Android in Ubuntu

We can make a backup of our information with the help of adb which is a utility that is not only within the Ubuntu repositories, but also in most Linux distributions.

The adb tool can even be obtained by installing Android studio.

Data-Transfer-Android

But in the case of us who are Ubuntu users the we can install with the following command from the terminal:

sudo apt-get install android-tools-adb

And that's it, we already have the tool installed.

We can perform the test by typing:

adb-shell

And it will appear on the screen that it is waiting for a device to be connected and identified by the tool.

In order for our team to be identified, we must enable the advanced programmer functions and within them enable the adb functions on our device.

Once this is done, we can proceed to connect our equipment with the USB cable that almost all equipment comes with its charger.

We connect it to the computer and type:

adb devices

If necessary, we kill the previous process that we execute with:

adb kill-server

And we re-launch it.

adb devices

Esto you must recognize our team and we will be inside. Now we only have to execute the following command to perform the backup with:

adb backup

We can customize the backrest in various ways, among which we can find:

-f <file>                 Usa esto para personalizar el archivo de salida

-apk|-noapk        Indica si quieres que las .apk se incluyan en el backup. Por defecto está en -noapk

-shared|-noshared         Indica si quieres realizar una copia del contenido de la memoria compartida/tarjeta SD. Por defecto está en -noshared.

-all          Hace una copia de todo.

-system|-nosystem        Indica si quieres realizar una copia de las aplicaciones del sistema (Reloj, Calendario, etc..). Por defecto es -system.

<packages…>    Especifica un paquete en concreto para hacer la copia de seguridad. ej: com.google.android.apps.plus

El método general para respaldar todo es con:

[sourcecode text="bash"]adb backup -all -f /home/usuario/Documentos/respaldo.ab

Where we can indicate the path where it will be stored.

How to restore Android bakcup?

Now simply if we want to restore the information from a backup previously made with adb, we execute the following command:

adb restore /ruta/a/tu/backup.ab

And ready with it, you can make a backup copy of your computer as well as be able to restore it in a simple way.


A comment, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   andres gallastegui said

    when I place the command: sudo apt-get install android-tools-adb: the terminal answers this: The android-tools-adb package could not be located