seedvault-app / seedvault

A backup application for the Android Open Source Project.
1.19k stars 73 forks source link

implement backup rotation / limits #559

Open steadfasterX opened 9 months ago

steadfasterX commented 9 months ago

According to https://github.com/seedvault-app/seedvault/discussions/337 SeedVault does not have a backup rotation implemented neither by disk space nor a user-chosen one.

Implementation ideas (all of them would be ideal to have, while 2. seems to be a good point to start with):

  1. auto-rotate (i.e. overwrite oldest backup) when running out of disk space
    • this will likely require to have a rough estimate of the backup size before
      1. let the user set a specific backup count
        • most "easy" one as it is up to the user to have an eye on the available disk space
  2. let the user set a specific max disk space amount
    • this will likely require to have a rough estimate of the backup size before the backup starts to write
major-mayer commented 4 months ago

I would definitely support this issue. It's quite surprising to me that such a feature doesn't exist yet. I mean, how do you store your backups, if they will just grow and grow forever? I just checked on my Nextcloud instance and Seedvault is already at over 100GB after just a few weeks, and I don't have many large apps: image

For me, this makes the app basically unusable, because I don't have unlimited storage.

grote commented 3 months ago

Related to #566

julianfoad commented 1 week ago

Issue #649 "Auto-pruning old snapshots when running out of storage" is a specific proposal for option 1.