Sync WhatssApp folder - Android 11

Hi everybody,

I’m trying to sync and backup Whatsapp folder from my phone and I’m have some issues that I hope you could have a clue about.

The path of android folder is:


/Android/media/com.whatsapp/WhatsApp

And the folder structure is:


/Android/media/com.whatsapp/WhatsApp
/Android/media/com.whatsapp/WhatsApp/.Shared
/Android/media/com.whatsapp/WhatsApp/.StickerThumbs
/Android/media/com.whatsapp/WhatsApp/.Thumbs
/Android/media/com.whatsapp/WhatsApp/.trash
/Android/media/com.whatsapp/WhatsApp/Backups
/Android/media/com.whatsapp/WhatsApp/Databases
/Android/media/com.whatsapp/WhatsApp/Media
/Android/media/com.whatsapp/WhatsApp/Media/.Links
/Android/media/com.whatsapp/WhatsApp/Media/.Statuses
/Android/media/com.whatsapp/WhatsApp/Media/WallPaper
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Animated Gifs
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Audio
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Documents
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Profile Photos
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Stickers
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video
/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Voice Notes

The folders with YES are the ones I want to sync:


YES /Android/media/com.whatsapp/WhatsApp
NO  /Android/media/com.whatsapp/WhatsApp/.Shared
NO  /Android/media/com.whatsapp/WhatsApp/.StickerThumbs
NO  /Android/media/com.whatsapp/WhatsApp/.Thumbs
NO  /Android/media/com.whatsapp/WhatsApp/.trash
NO  /Android/media/com.whatsapp/WhatsApp/Backups
NO  /Android/media/com.whatsapp/WhatsApp/Databases
NO  /Android/media/com.whatsapp/WhatsApp/Media
NO  /Android/media/com.whatsapp/WhatsApp/Media/.Links
NO  /Android/media/com.whatsapp/WhatsApp/Media/.Statuses
NO  /Android/media/com.whatsapp/WhatsApp/Media/WallPaper
YES /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Animated Gifs
NO  /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Audio
YES /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Documents
YES /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images
NO  /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Profile Photos
YES /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Stickers
YES /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video
NO  /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Voice Notes

I tried several ways to sync it without find the proper way, some folders that I don’t want to sync are not being removed. The last attempt was like this:


YES /Android/media/com.whatsapp/WhatsApp
NO  /Android/media/com.whatsapp/WhatsApp/.Shared
NO  /Android/media/com.whatsapp/WhatsApp/.StickerThumbs
NO  /Android/media/com.whatsapp/WhatsApp/.Thumbs
NO  /Android/media/com.whatsapp/WhatsApp/.trash
NO  /Android/media/com.whatsapp/WhatsApp/Backups
NO  /Android/media/com.whatsapp/WhatsApp/Databases
NO  /Android/media/com.whatsapp/WhatsApp/Media
NO  /Android/media/com.whatsapp/WhatsApp/Media/.Links
NO  /Android/media/com.whatsapp/WhatsApp/Media/.Statuses
NO  /Android/media/com.whatsapp/WhatsApp/Media/WallPaper
NO  /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Audio
NO  /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Profile Photos
NO  /Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Voice Notes

Does anybody have any suggestion?

On my OnePlus9 with Android 11 I also sync the folder

/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media

and it works fine. For your case it make also no sense to store the choosed “YES” folder each, its better to use a combination of the root folder

/storage/emulated/0/Android/media/com.whatsapp/WhatsApp

and store each of “NO” in the ignore list.

Hi Andy, thank you for the suggestion, I tried with and without the YES lines, this case is working fine. The issue is with the NO, mainly Backups and Database folders that have big files.

I dont know, if I understood you. I would work as follow. In Syncthing you create 1 folder with the path

/Android/media/com.whatsapp/WhatsApp

and store your exclusions in the ignore list as follow

.Shared
.StickerThumbs
.Thumbs
.trash
Backups
Databases
Media
.Links
.Statuses
WallPaper
WhatsApp Audio
WhatsApp Profile Photos
WhatsApp Voice Notes

Thats it. Maybe you modify the list regarding the documentation

https://docs.syncthing.net/users/ignoring.html

Possible could be also

WhatsApp/.Shared
WhatsApp/.StickerThumbs
WhatsApp/.Thumbs
WhatsApp/.trash
WhatsApp/Backups
WhatsApp/Databases
WhatsApp/Media
WhatsApp/Media/.Links
WhatsApp/Media/.Statuses
WhatsApp/Media/WallPaper
WhatsApp/Media/WhatsApp Audio
WhatsApp/Media/WhatsApp Profile Photos
WhatsApp/Media/WhatsApp Voice Notes
1 Like