I recently installed again whatsapp in my new smartphone android but the local backup doesn't work automatically. Today I pressed back up for the google drive backup and it also included the local backup. But for the past weeks whatsapp never did the local backup automatically. Do you know why?
Most likely your phone is a bit aggressive about killing the background tasks. So, WhatsApp is unable to wake up the phone at its usual 1-2AM slot to perform a backup. A lot of phones are doing this to ensure a better battery backup and standby.
Do note that notifications may still flow even when WhatsApp is not allowed to do tasks related to backup in the background. But most of the times, they are either delayed or only show up when you first turn on the phone display in the morning.