restic-android
restic-android copied to clipboard
Backup rules
- only backup with WiFi connection
- only backup when charging
@lhns I dont know when i ll find time to tinker again, but if i do i wanted to have a look at this issue.
I see three ways of implementing those two rules:
- on a global app setting basis (my favourite - no need in my view to be more granular)
- repo basis
- folder basis
Whats your take/preference ?
Also do i understand this Pr#66 correct that currently it already only syncs if wifi is connected ? So this just has to be conditional then ?
I think a per-folder setting is certainly a common use case. For example one could make a full backup once per week but backup the photos directory every hour. For the first iteration a global setting would probably suffice. In the future a feature to override this setting on a folder basis would be nice though. Yes #66 already adds a constraint to the job schedule to only run on metered networks. This has to be modified for a configurable solution.
@lhns Great work. I like the app really well. The already existing functions covers a lot of my needs.
A WiFi only mode would be really helpful for me. I use restic-android also to backup my Signal Chats. When Signal creates a backup, it creates one encrypted file per run. So, incremental backups are not possible. In my case, each backup file has the size of 1,5 GB. So have to care about, that my Smartphone do the backup in morning, before I left my house. Otherwise my mobile volume is gone after the second backup.