Closed schroda closed 3 months ago
I think would would be better to filter for .tachibk files instead of storing a list of old backups
what if there are non automated or mihon backups in the same folder that are not supposed to be cleaned up? wouldn't this then basically be the same issue again as the person from discord had with unintended files getting deleted?
In Mihon there is one main backup folder, and a subfolder for auto backups. Maybe we can do that instead Like
> backups
-> auto
We can alternatively change it so we add auto to the filename and do something like filename.startsWith("org.suwayomi.tachidesk.auto")
filter as well, to specify only Suwayomi backups
We can alternatively change it so we add auto to the filename and do something like filename.startsWith("org.suwayomi.tachidesk.auto") filter as well, to specify only Suwayomi backups
done
The automated backup cleanup just deleted every file (recursively in subfolders as well) in the set folder in case it was older than the set backup ttl. This made it impossible to save the automated backups into a folder with different files.