Girish Ramakrishnan
490840b71d
archives: use separate table
...
Cleaner to separate things from the backups table.
* icon, appConfig, appStoreIcon etc are only valid for archives
* older version cloudron does not have appConfig in backups table (so it
cannot be an archive entry)
2024-12-10 10:36:44 +01:00
Girish Ramakrishnan
147e014205
backup: add archive flag
2024-12-09 16:25:31 +01:00
Girish Ramakrishnan
6742cdf373
backups: remount remote if not mounted before a backup
2024-09-09 18:15:49 +02:00
Girish Ramakrishnan
ea72cef7f9
storage: remove getProviderStatus
2024-09-09 17:36:51 +02:00
Girish Ramakrishnan
9704eefc21
backupcleaner: do not remove the backup in progress
...
the backup cleaner erroneously removes any "creating" state backups.
backups that are stuck are cleaned up elsewhere already (in the
backup retention logic with discardReason of "creating-too-long").
the missing backup logic is intended for any upstream lifecycle policies.
2024-08-15 15:53:31 +02:00
Girish Ramakrishnan
52cd52d83c
lint
2024-08-15 15:46:19 +02:00
Girish Ramakrishnan
5a3ffa20ce
backupcleaner: dump the retention
2023-09-05 08:48:48 +05:30
Girish Ramakrishnan
e73b75e4b5
settings: move backup settings
2023-08-04 11:54:12 +05:30
Girish Ramakrishnan
050a82039a
getBackupProviderStatus -> getProviderStatus
2023-07-15 11:00:45 +05:30
Girish Ramakrishnan
9cebde3005
backups: split config and policy
...
keeping them together makes the test/validation quite complicated.
for example, when policy is changed, we test the storage backends
part of #817
2023-07-13 11:07:06 +05:30
Girish Ramakrishnan
c4f4f3e914
logs: use %o to format error
...
otherwise, they are printed as multi-line and this messes up tail+date formatting
2023-04-16 10:49:59 +02:00
Girish Ramakrishnan
2759b6268e
backup cleaner: use object.assign instead
2023-01-31 11:46:46 +01:00
Girish Ramakrishnan
02b6aa93cb
backup cleaner: do not delete mail snapshot
2023-01-31 10:58:51 +01:00
Girish Ramakrishnan
ebd970d3f4
backup cleaner: better error messages
2023-01-31 10:56:37 +01:00
Girish Ramakrishnan
c3793da5bb
split checkPrecondition so it can be used in cleaner as well
2022-10-02 17:41:21 +02:00
Girish Ramakrishnan
e2c6672a5c
better wording
2022-07-02 17:16:47 +05:30
Johannes Zellner
5c50534e21
Improve backup cleanup progress message
2022-07-01 14:18:50 +02:00
Girish Ramakrishnan
7123ec433c
split up backupformat logic into separate files
2022-04-28 19:10:57 -07:00
Girish Ramakrishnan
685bda35b9
storage: make remove and removeDir async
2022-04-14 16:16:20 -05:00
Girish Ramakrishnan
d54c03f0a0
storage: make exists async
2022-04-14 12:24:34 -05:00
Girish Ramakrishnan
0280c2baba
keep the backup if preserveSecs is -1
2022-04-05 11:08:38 -07:00
Girish Ramakrishnan
452a4d9a75
backups: add remotePath
...
the main motivation is that id can be used in REST API routes. previously,
the id was a path and this had a "/" in it. This made /api/v1/backups/:backupId
not work.
2022-04-04 20:40:40 -07:00
Girish Ramakrishnan
74e849e2a1
backup cleaner: do not clean when provider is not mounted
2022-03-30 10:17:20 -07:00
Girish Ramakrishnan
0f04933dbf
backups: fix issue where mail backups were not cleaned up
2021-11-16 19:52:51 -08:00
Girish Ramakrishnan
0415262305
backupcleaner: fix crash
2021-09-26 21:59:48 -07:00
Girish Ramakrishnan
ad3dbe8daa
mail: keep mail backups separately from box backups
...
part of #717
2021-09-26 21:47:24 -07:00
Girish Ramakrishnan
f66af19458
page number starts from 1
2021-09-19 18:36:08 -07:00
Girish Ramakrishnan
77f5cb183b
merge appdb.js into apps.js
2021-08-23 15:35:38 -07:00
Girish Ramakrishnan
411cc7daa1
merge settingsdb into settings code
2021-08-19 17:45:40 -07:00
Girish Ramakrishnan
2840bba4bf
fix the backup tests
2021-07-15 00:09:45 -07:00
Girish Ramakrishnan
004e812d60
merge backupdb into backups.js
2021-07-14 15:10:45 -07:00