by Winz Wjy
I modified this auto TWRP backup flow so it uploads to Google Drive the backup after reboot.
I have also modified the original flow so it backs up ALL partitions always.
You have to choose your Google account in #73 and #75.
You also have to choose your preferred Wi-Fi after the "Wi-Fi enable" block. (or modify that part to use your data. Full backup size may be more than 16GB. You know how much)
The name of the original flow is [ROOT] Scheduled TWRP Backups
---- FROM HERE YOU HAVE THE ORIGINAL DESCRIPTION ----
Why would you want to back up regularly? Because you might (un)install apps, or change settings, or make other changes to apps every day. All that data is saved to the /data and /cache partitions, so having a current backup saves a lot of hassle if you ever need to restore after a clean wipe.
Requires Android 4.1+ and root permission.
Works with TWRP and any other custom recovery that uses openrecoveryscript.
You will need to know the directory TWRP stores backups in, as it varies from device to device.
This flow will reboot to recovery and backup your /data and/or /cache partitions with compression enabled at a time on days of the week that you choose, after a 10 minute delay to allow you the opportunity to cancel.
For the backup to begin, battery must be above 50% OR plugged in to AC power (wall adapter). If neither of these conditions is met, you will get a notification with three options:
▪ ️cancel: skips this backup
▪️ override: backs up immediately. MAKE SURE YOU HAVE ENOUGH POWER FOR THIS
▪ wait for plug: will begin backup once AC power is connected