felix bear
00cd665e1a
feat(backup): configure automatic backup file limit #6690 ( #8094 )
...
Co-authored-by: cocojojo5213 <cocojojo5213@users.noreply.github.com>
2026-06-08 12:09:49 +02:00
Johannes Millan
99b7dee74a
fix(backup): move shared timestamp util into electron/ for snap packaging
...
electron/backup.ts imported getBackupTimestamp from src/app/util/, which
tsc compiled alongside the source. electron-builder only packages
electron/** and the Angular renderer bundle, so the compiled util was
missing from app.asar and the main process crashed on launch with
"Cannot find module '../src/app/util/get-backup-timestamp'".
Moved the util to electron/shared-with-frontend/ (existing convention
for code shared between main and renderer), updated all importers.
Fixes #7270
Refs #7315 , #7323 , #7265 , #7320
2026-04-22 16:14:56 +02:00
novikov1337danil
1abb15b804
refactor(backup): unify backup filename format ( #7141 )
...
* refactor(backup): implement consistent timestamp for backup filenames
* refactor(i18n): rename PRIVACY_EXPORT key to PRIVACY_EXPORT_DESCRIPTION
* refactor(i18n): add PRIVACY_EXPORT key for data export in multiple languages
* refactor(backup): standardize backup filename prefix
* refactor(backup): update backup filename format to use underscore separator
* refactor(i18n): update translations
* refactor(backup): move getBackupTimestamp utility to a shared location for consistency
* test(backup): add unit tests for getBackupTimestamp utility
* fix(e2e): move MIGRATION_BACKUP_PREFIX to migration.const
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* refactor(tests): move jasmine.clock().install() to beforeEach for consistency
* refactor(backup): consolidate backup filename constants and update imports
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-21 14:09:09 +02:00
Johannes Millan
c53b199bbf
chore(backup): increase retention to 30 recent and 21 daily
2026-02-11 20:37:40 +01:00
Johannes Millan
c0fbfd14f2
feat(backup): use timestamped filenames with smart retention policy
...
Backups now use YYYY-MM-DD_HHmmss.json naming instead of YYYY-MM-DD.json,
allowing multiple backups per day instead of overwriting. A cleanup routine
keeps the 14 most recent backups plus the last backup of each day for 7 days.
2026-02-10 21:22:19 +01:00
loviuz
849d6fbe5c
fix: linting
2025-05-01 13:04:23 +02:00
vr-jack
57a4e2839a
Fix 995 webedits define BACKUP_DIR_WINSTORE and return it for getBackupPath
...
* Update ipc-handler.ts handle backup path for window store
* Update backup.ts define windows store version of BACKUP_DIR constant
2025-04-28 22:38:13 +02:00
Johannes Millan
b767549840
feat(pfapi): make updating local data work
2025-04-12 13:56:47 +02:00
Johannes Millan
cf1c38bf3b
refactor: use same backup path everywhere #2910
2023-12-29 14:10:22 +01:00
Johannes Millan
dec2eb702c
fix: wrong backup path being used #2910
2023-12-29 13:04:35 +01:00
Johannes Millan
e2b9f82411
feat(electronSecurity): make electron log work again
2023-12-15 16:38:00 +01:00
Johannes Millan
8002e20bea
feat(electronSecurity): make invoke stuff work on electron side
2023-12-15 16:38:00 +01:00
jchatoff
fb659ddf26
fix: windows backup path #2869
2023-11-30 18:02:20 +01:00
Johannes Millan
8a3d01f90e
build: prepare electron update and update electron builder
2023-08-25 14:39:54 +02:00
Johannes Millan
7ee50dc485
refactor: moved shared stuff to its own folder
2022-03-12 11:59:52 +01:00
Johannes Millan
2284892272
refactor(elctron): add typing wherever possible and simplify
2022-01-30 20:12:41 +01:00
Johannes Millan
9f2bcd751c
feat(localSync): prepare electron interface #690
2021-07-22 15:23:31 +02:00
Johannes Millan
afca80f0b7
feat(electron): improve logging
2021-05-25 09:50:10 +02:00
Johannes Millan
43022f8e83
refactor: format everything with prettier
2021-05-06 22:37:37 +02:00
Johannes Millan
a52b6a54e7
feat: update logging for backup files
2020-11-19 18:09:45 +01:00
Johannes Millan
263017f857
fix: code formatting
2020-10-28 23:37:07 +01:00
Johannes Millan
cfeed8de10
feat(autoBackupRestore): add translations #553
2020-10-04 23:03:23 +02:00
Johannes Millan
a54711d965
feat(autoBackupRestore): make it work #553
2020-10-04 22:41:36 +02:00
Johannes Millan
bdd3cbc496
feat(autoBackupRestore): implement most basic variant – circular dependency #553
2020-10-04 22:41:36 +02:00
Johannes Millan
7d00652eb9
feat(autoBackupRestore): outline #553
2020-10-04 22:41:36 +02:00
Johannes Millan
d24b6f231d
feat: enable strict mode for electron as well
2020-07-05 12:48:24 +02:00
Johannes Millan
8254567e84
feat(electron): implement error logging
2019-02-23 15:32:46 +01:00
Johannes Millan
6cef8bf5cb
feat(localBackup): save simple backups from electron
2019-01-26 00:10:58 +01:00