TWRP backup including internal storage

Search This thread

mart56

Member
We all know, at least I hope so, that if you perform a backup in TWRP the internal storage data (photos, documents, etc.) is not included in the backup.
https://twrp.me/faq/backupexclusions.html
Of course, you can always manually backup the internal storage. But it is possible to include the internal storage data in a TWRP backup by temporarily renaming the media folder inside the root folder data.

A TWRP backup includes the TWRP folder for it is part of the internal storage. Therefore it will also backup all the large files which are present. It is therefore more convenient to keep the TWRP folder as small as possible, but it is up to you.

1. Go into TWRP recovery.
2. The path is button advanced button file management within the data folder you will find the media folder. Rename the media folder
temporarily to e.g. ABC.
3. Perform a new backup in TWRP and give it a new name. Don't leave TWRP but enter file management again.
4. You will find a new media folder. This is because TWRP creates this media folder, it includes your new backup.
5. Your follow-up actions will be to rename the new media folder into e.g. DEF and rename the temporary folder ABC (which is the original media folder)
back to media.
6. Restart your system and now you find a TWRP backup including internal storage in the DEF folder. Move this backup to the TWRP folder and delete
the DEF folder.

Thats it.

Do not forget when you perform a recovery with this backup to repeat step 6.
 

ccchan234

Member
Jul 8, 2017
36
7
update:
20180321-111816

OK I found another post, using same method but used examples.

Indeed they are using same method,

and I would like to thank OP and that post's OP.

both help to "include internal storage into TWRP backup".

thanks~

https://forum.xda-developers.com/android/general/tutorial-create-internal-storage-backup-t3389172
--------------------------------------------------
Can you write in more simple english?

I really dont understand the details.

It will help with examples, with the full path instead of just "ABC" "DEF"

Thank you.
 
Last edited:

hyborian

Senior Member
Oct 25, 2017
1,188
371
Excellent

If backing up to external SD Card, media directory is not created, so just rename it back after the backup process. If rebooted without renaming back, then it recreates media directory.


.
 
Last edited:

kingarthas

Member
Jul 26, 2010
49
4
I was looking for full back up solution and found this: https://www.xda-developers.com/tipatch-patches-twrp-full-data-backups/

Both options have drawbacks... I dont like wipe data option in TWRP to delete data including storage :(.

---------- Post added at 01:15 PM ---------- Previous post was at 01:02 PM ----------

We all know, at least I hope so, that if you perform a backup in TWRP the internal storage data (photos, documents, etc.) is not included in the backup.
https://twrp.me/faq/backupexclusions.html
Of course, you can always manually backup the internal storage. But it is possible to include the internal storage data in a TWRP backup by temporarily renaming the media folder inside the root folder data.

A TWRP backup includes the TWRP folder for it is part of the internal storage. Therefore it will also backup all the large files which are present. It is therefore more convenient to keep the TWRP folder as small as possible, but it is up to you.

1. Go into TWRP recovery.
2. The path is button advanced button file management within the data folder you will find the media folder. Rename the media folder
temporarily to e.g. ABC.
3. Perform a new backup in TWRP and give it a new name. Don't leave TWRP but enter file management again.
4. You will find a new media folder. This is because TWRP creates this media folder, it includes your new backup.
5. Your follow-up actions will be to rename the new media folder into e.g. DEF and rename the temporary folder ABC (which is the original media folder)
back to media.
6. Restart your system and now you find a TWRP backup including internal storage in the DEF folder. Move this backup to the TWRP folder and delete
the DEF folder.

Thats it.

Do not forget when you perform a recovery with this backup to repeat step 6.

As I understand our media should be back up in ABC. So during recovery after "format data" or "wipe including internal storage" it will restore our media in ABC folder, do we need to rename it back to media using TWRP to complete recovery?
My understanding is that internal storage will stay in ABC, and not be visible when boot in System(not doing step 5). In system we will have the newly created media empty (because we can not do step 6 DEF folder is actual internal storage and will not be included in back up).


So do you mean that we need to do step (5) after recovery? Not step (6)?
 
Last edited:

mikkipopup

New member
Oct 20, 2017
3
0
useless

whenever i tried to take a backup,the same error pops up,even after following ur instructions.so ur post is useless for me.
 

ddfcoold

Member
Jan 26, 2016
7
0
Guys, does anybody know, why twrp doesn't see an option data including storage (large sd needed) while I am trying to restore it? It definitely is present in the backup
 

boernsen

Member
Jan 18, 2021
17
1
I followed this guide and the backup size is 28591MB (boot, data, system). However, the internal memory of my S4mini is only 8GB. How can the /data/media folder be bigger than the internal memory? It is not stored on the external sd card is it?

UPDATE: I deleted the /data/media/0/DCIM/.thumbnail folder and now the backup is only 4950MB :unsure:
:sneaky:
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    We all know, at least I hope so, that if you perform a backup in TWRP the internal storage data (photos, documents, etc.) is not included in the backup.
    https://twrp.me/faq/backupexclusions.html
    Of course, you can always manually backup the internal storage. But it is possible to include the internal storage data in a TWRP backup by temporarily renaming the media folder inside the root folder data.

    A TWRP backup includes the TWRP folder for it is part of the internal storage. Therefore it will also backup all the large files which are present. It is therefore more convenient to keep the TWRP folder as small as possible, but it is up to you.

    1. Go into TWRP recovery.
    2. The path is button advanced button file management within the data folder you will find the media folder. Rename the media folder
    temporarily to e.g. ABC.
    3. Perform a new backup in TWRP and give it a new name. Don't leave TWRP but enter file management again.
    4. You will find a new media folder. This is because TWRP creates this media folder, it includes your new backup.
    5. Your follow-up actions will be to rename the new media folder into e.g. DEF and rename the temporary folder ABC (which is the original media folder)
    back to media.
    6. Restart your system and now you find a TWRP backup including internal storage in the DEF folder. Move this backup to the TWRP folder and delete
    the DEF folder.

    Thats it.

    Do not forget when you perform a recovery with this backup to repeat step 6.