Create automatic backups only every 3 days, update summary (#7005)

This commit is contained in:
ByteHamster 2024-03-20 18:45:39 +01:00 committed by GitHub
parent 4bc90897b6
commit 542d50cba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class AutomaticDatabaseExportWorker extends Worker {
WorkManager.getInstance(context).cancelUniqueWork(WORK_ID_AUTOMATIC_DATABASE_EXPORT); WorkManager.getInstance(context).cancelUniqueWork(WORK_ID_AUTOMATIC_DATABASE_EXPORT);
} else { } else {
PeriodicWorkRequest workRequest = new PeriodicWorkRequest.Builder( PeriodicWorkRequest workRequest = new PeriodicWorkRequest.Builder(
AutomaticDatabaseExportWorker.class, 1, TimeUnit.DAYS) AutomaticDatabaseExportWorker.class, 3, TimeUnit.DAYS)
.build(); .build();
WorkManager.getInstance(context).enqueueUniquePeriodicWork(WORK_ID_AUTOMATIC_DATABASE_EXPORT, WorkManager.getInstance(context).enqueueUniquePeriodicWork(WORK_ID_AUTOMATIC_DATABASE_EXPORT,
replace ? ExistingPeriodicWorkPolicy.REPLACE : ExistingPeriodicWorkPolicy.KEEP, workRequest); replace ? ExistingPeriodicWorkPolicy.REPLACE : ExistingPeriodicWorkPolicy.KEEP, workRequest);

View File

@ -580,7 +580,7 @@
<string name="html_export_label">HTML export</string> <string name="html_export_label">HTML export</string>
<string name="database_export_label">Database export</string> <string name="database_export_label">Database export</string>
<string name="automatic_database_export_label">Automatic database export</string> <string name="automatic_database_export_label">Automatic database export</string>
<string name="automatic_database_export_summary">Automatically create daily backups of the AntennaPod database</string> <string name="automatic_database_export_summary">Create a backup of the AntennaPod database every 3 days. Only keep the 5 most recent backups.</string>
<string name="automatic_database_export_error">Error during automatic database backup</string> <string name="automatic_database_export_error">Error during automatic database backup</string>
<string name="database_import_label">Database import</string> <string name="database_import_label">Database import</string>
<string name="database_import_warning">Importing a database will replace all of your current subscriptions and playing history. You should export your current database as a backup. Do you want to replace?</string> <string name="database_import_warning">Importing a database will replace all of your current subscriptions and playing history. You should export your current database as a backup. Do you want to replace?</string>