Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for incremental Backups? #97

Open
teekamsuthar opened this issue Jan 9, 2024 · 2 comments
Open

Support for incremental Backups? #97

teekamsuthar opened this issue Jan 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@teekamsuthar
Copy link

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 teekamsuthar added the bug Something isn't working label Jan 9, 2024
@mrrfv
Copy link
Owner

mrrfv commented Jan 11, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants