open-android-backup icon indicating copy to clipboard operation
open-android-backup copied to clipboard

Support for incremental Backups?

Open teekamsuthar opened this issue 2 years ago • 2 comments

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! :)

teekamsuthar avatar Jan 09 '24 06:01 teekamsuthar

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.

mrrfv avatar Jan 11 '24 18:01 mrrfv

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! :)

teekamsuthar avatar Jan 12 '24 11:01 teekamsuthar