Girish Ramakrishnan
c4dffa393b
backups: remove entries from database that don't exist in storage
...
fixes #772
2021-02-19 11:34:22 -08:00
Girish Ramakrishnan
f6cb1a0863
backups: query using identifier instead of type
...
this allows us to move the enums into backups.js instead of backupdb.js
2020-06-14 12:27:41 -07:00
Girish Ramakrishnan
4f964101a0
add identifier to backups table
2020-06-14 11:39:44 -07:00
Girish Ramakrishnan
f417a49b34
Add encryptionVersion to backups
...
this will identify the old style backups and warn user that a restore
doesn't work anymore
2020-05-13 22:37:02 -07:00
Girish Ramakrishnan
66fd713d12
rename version to packageVersion
2020-05-13 21:55:50 -07:00
Girish Ramakrishnan
7a96e4858a
Not found messages at the db level
2019-10-24 20:48:38 -07:00
Girish Ramakrishnan
a017af41c5
Start moving db code to use BoxError as well
2019-10-24 14:09:53 -07:00
Girish Ramakrishnan
083b8a6d7b
Add preserveSecs to backup entries
...
We want to keep updates automatic and don't want to keep reminding
users that apps are getting updated etc (i.e beyong the weekly
digest). The reason to remind them is so they can check if the
app updated correctly. in some very corner cases, the app is not
really checked upon for a while and people forget about them until
they check them later. in such cases, it's too late to recover because
the backpus gets cleaned up. this preserve seconds fields, let's us
mark 'update' backups for preservation for 3 weeks.
2019-04-13 18:17:49 -07:00
Girish Ramakrishnan
74211dd2c9
Change signature of backupdb.add
2019-04-13 17:28:19 -07:00
Girish Ramakrishnan
92acb2954f
Rename restoreConfig to manifest in backup table
...
Only the manifest needs to be preserved in the backup table
2017-11-16 11:25:40 -08:00
Girish Ramakrishnan
8c7223ceed
Fix cleanup logic to use the app backup format
...
box backup and app backup can have different format
2017-10-03 00:56:34 -07:00
Girish Ramakrishnan
a34180c27b
Add format to backupsdb
...
Call remove/removeDir based on the format
2017-09-27 18:02:30 -07:00
Girish Ramakrishnan
77641f4b51
Add backupdb.getByState and backupdb.getByTypeAndState
...
part of #330
2017-05-30 14:30:06 -07:00
Girish Ramakrishnan
765d20c8be
Add backup states to track unfinished backups
...
part of #330
2017-05-30 13:43:30 -07:00
Johannes Zellner
880f7b4cd3
Allow to get backups by type in backupdb
2017-04-24 12:41:19 +02:00
Girish Ramakrishnan
aeba8e8fd2
Use retentionSecs to cleanup backups
...
Part of #310
2017-04-23 19:34:00 -07:00
Johannes Zellner
5460027a49
Add restoreConfig to backupsdb.js
2017-04-18 11:57:59 +02:00
Girish Ramakrishnan
967bab678d
Fix listing of app backups
...
The id can now contain path and not just the filename
2017-01-05 01:03:44 -08:00
Girish Ramakrishnan
c06bddd19e
Fix backup filename prefix in sql query
2017-01-04 21:41:31 -08:00
Girish Ramakrishnan
bbff195863
rename filename to id
2016-04-04 12:20:56 -07:00
Girish Ramakrishnan
0467e80c71
remove unused require
2016-04-04 12:13:25 -07:00
Girish Ramakrishnan
16a65fb185
drop configJson
...
The initial idea was to store exactly where the backups are stored.
But this only causes problems for migrations where the bucket might
change and clones where the prefix (box.id) changes.
Thus, it's best to leave the url creation to the caas side. (That
has to be done in another change)
2016-04-03 22:55:08 -07:00
Girish Ramakrishnan
92e4433dff
make backupdb.get return app backups
2016-03-31 09:12:12 -07:00
Girish Ramakrishnan
a4aa5bbc59
fix linting
2016-03-31 00:51:38 -07:00
Girish Ramakrishnan
47c5cad239
fix typo
2016-03-30 17:06:50 -07:00
Girish Ramakrishnan
c097651a88
store backup configuration as part of backups table
2016-03-30 15:04:39 -07:00
girish@cloudron.io
4b77703902
export getByAppIdPaged
2016-03-07 17:52:13 -08:00
Girish Ramakrishnan
9de6f9c1c2
add backupdb
...
mostly same code as the appstore side
2016-03-07 09:30:44 -08:00