mrrfv / open-android-backup

Back up your device without vendor lock-ins, using insecure software or root. Supports encryption and compression out of the box. Works cross-platform.
http://openandroidbackup.me/
GNU General Public License v3.0
674 stars 37 forks source link

Support for incremental Backups? #97

Open teekamsuthar opened 5 months ago

teekamsuthar commented 5 months ago

Device info

Manufacturer: Samsung Android version: 13 Custom ROM/rooted? nope Model: S20

System info

Available disk space: 200GB Operating system: MAC


Describe the issue below. Can this script do incremental backups of my device? As such, the photos and videos can be skipped if they were previously backed up? So that I can just plug in the device and run the script every week and have peace of mind! Thanks! :)

mrrfv commented 5 months ago

Not natively, but you can combine the script's discouraged_disable_archive option with an incremental backup tool (such as borg or restic) to achieve this.

If you set the discouraged_disable_archive environment variable to yes, then the script will leave the exported data as-is without any compression or encryption, meaning it can be easily deduplicated by such tools. Manual creation of the backup archive, in case you want to restore it, is actually very simple - just rename the backup folder to backup-tmp and compress it with 7-Zip in such a way that the backup-tmp folder is stored inside the archive (not just its contents).

The discouraged in the name is only there because the option disables encryption when enabled. This is not that big of a problem if the backups are stored locally on an encrypted drive, and you trust the programs that have access to it.

See here for more information on the options.

teekamsuthar commented 5 months ago

Thanks for your prompt reply! I'm truly grateful for your efforts in creating this incredible tool.

I'll follow the steps you outlined and will update you on my progress. I've been searching for a tool like this for a long time, and if it meets my needs, I'd be more than happy to make a donation or contribute in any way I can! :)