Johannes Zellner
df9c7010e2
Make backup memory limit slider more predictable with a minimum of 1 GB
2024-02-20 22:12:20 +01:00
Girish Ramakrishnan
450dd70ea2
backups: up min memory limit to 1GB
2024-02-19 17:02:14 +01:00
Girish Ramakrishnan
64381e2a04
backups: remove validation mount point after testing it
...
this also moves out the attempt validation logic from mounts code
into volumes. mounts.tryAddMount is also used in backup code
2023-09-29 08:01:58 +05:30
Girish Ramakrishnan
bbc6714be8
backup: show app backup details
2023-09-05 09:15:12 +05:30
Girish Ramakrishnan
e33ae8ae11
add missing export
2023-08-16 10:28:44 +05:30
Girish Ramakrishnan
aa8c23c8b3
rework backup root
...
notes:
* backup root cannot come from backend. for dynamic mounts backend cannot know where it is mounted
* backupConfig is 3 parts - format / mount / password . there is also this rootPath (which should not be in db)
* password should be stored separately in settings at some point
* format has to be passed along everywhere because we allow restore from same backupConfig but different format. we do this by saving the format in the backups table
fixes #819
2023-08-15 22:51:45 +05:30
Girish Ramakrishnan
da49a69562
backups: testConfig is really testStorage
2023-08-15 19:59:00 +05:30
Girish Ramakrishnan
9dedf0ec05
validate the backup format
2023-08-15 19:57:51 +05:30
Girish Ramakrishnan
cd9d49116e
backups: move limits and storage into separate keys
2023-08-15 10:48:56 +05:30
Girish Ramakrishnan
630853abb5
move mountObjectFromBackupConfig into backups
2023-08-15 08:55:38 +05:30
Girish Ramakrishnan
e6b85c2df7
remount does not need a backend hook
2023-08-15 08:55:38 +05:30
Girish Ramakrishnan
da73067315
rename change notifiers to have handle prefix
2023-08-04 11:54:15 +05:30
Girish Ramakrishnan
e73b75e4b5
settings: move backup settings
2023-08-04 11:54:12 +05:30
Girish Ramakrishnan
68e56f903d
validate encryption password separately
2023-07-13 12:42:38 +05:30
Girish Ramakrishnan
c86059e070
backups: move limits into a sub object
...
fixes #817
2023-07-13 12:17:57 +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
506d3adf70
Fix crash when querying backup mount status
2023-05-15 10:40:39 +02:00
Girish Ramakrishnan
883915c9d3
backups: move mount status to separate route
2023-04-30 17:21:18 +02:00
Girish Ramakrishnan
3caffdb4e1
Rework app stats
...
Previously, the du plugin was collecting data every 20 seconds but
carbon was configured to only keep data every 12 hours causing much
confusion.
In the process of reworking this, it was determined:
* No need to collect disk usage info over time. Not sure how that is useful
* Instead, collect CPU/Network/Block info over time. We get this now from docker stats
* We also collect info about the services (addon containers)
* No need to reconfigure collectd for each app change anymore since there is no per
app collectd configuration anymore.
2022-10-10 21:13:26 +02:00
Girish Ramakrishnan
4f0e0706b2
backups: fix id
...
avoid box_box_ and mail_mail_ in backup ids
2022-09-29 18:01:19 +02:00
Girish Ramakrishnan
26c9d8bc88
notification: Fix crash when backupId is null
2022-08-01 14:15:09 +02:00
Girish Ramakrishnan
2e5d89be6b
allow space in backup label
2022-06-24 09:18:51 -07:00
Girish Ramakrishnan
11f7be2065
storage: verifyConfig is now async
2022-04-14 12:24:30 -05:00
Girish Ramakrishnan
a39e0ab934
storage: make remount async
2022-04-14 09:57:31 -05:00
Girish Ramakrishnan
21b900258a
backup: fix format of id
...
the id is used in dependsOn by the UI to find the linked apps. if we
had it as an uuid, we have to query the db a lot
2022-04-08 16:23:27 -07:00
Girish Ramakrishnan
709d4041b2
backups: fix restore code path after backup id changes
2022-04-05 09:55:57 -07:00
Girish Ramakrishnan
ea3fd27123
backups: recursively update the dep preserveSecs
...
One idea was to compute this at cleanup time, but this has two problems:
* the UI won't reflect this value. can be good or bad
* the cleaner has no easy way to find out the "parent". I guess we should
change our data structure, if we want to go down this route...
2022-04-04 21:29:35 -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
70695b1b0f
backups: set label of backup and control it's retention
2022-04-02 19:30:54 -07:00
Girish Ramakrishnan
a3e097d541
add missing awaits for eventlog.add
2022-02-24 20:04:46 -08:00
Girish Ramakrishnan
964c1a5f5a
remove field from errors
...
we have standardized on indexOf in error.message by now
2022-02-07 13:44:29 -08:00
Girish Ramakrishnan
0f04933dbf
backups: fix issue where mail backups were not cleaned up
2021-11-16 19:52:51 -08:00
Girish Ramakrishnan
0103b21724
bump default backup memory limit to 800
2021-10-26 11:03:54 -07:00
Girish Ramakrishnan
ca252e80d6
Fix usage of await
2021-10-11 10:29:46 -07:00
Johannes Zellner
d1a7172895
Add remount route for mountlike backup storages
2021-10-11 18:12:11 +02:00
Girish Ramakrishnan
da2f561257
add note in functions used in migrations
2021-10-06 13:09:53 -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
e8aaad976b
backups: make test config funcs return error
2021-09-17 10:14:26 -07:00
Girish Ramakrishnan
9a2ed4f2c8
apptask: asyncify
2021-09-16 17:25:05 -07:00
Girish Ramakrishnan
ae13fe60a7
make startBackupTask async
2021-09-10 12:10:10 -07:00
Girish Ramakrishnan
411cc7daa1
merge settingsdb into settings code
2021-08-19 17:45:40 -07:00
Girish Ramakrishnan
004e812d60
merge backupdb into backups.js
2021-07-14 15:10:45 -07:00
Girish Ramakrishnan
e59d0e878d
merge taskdb into tasks.js
2021-07-14 10:37:12 -07:00
Girish Ramakrishnan
9c0f983ce1
backups: fix failure notitification
2021-06-24 01:44:46 -07:00
Girish Ramakrishnan
89607d2c64
remove the backup check notification and route
...
it seems we decided that instead of a notification, we display a warning in
the backups view itself (see #719 ).
2021-06-23 22:09:23 -07:00
Girish Ramakrishnan
3eb5a26c46
prefix translatable strings with tr:
2021-06-23 22:02:07 -07:00
Girish Ramakrishnan
f2e0ee12a2
vultr: object storage
2021-06-16 22:36:01 -07:00
Girish Ramakrishnan
8da4eaf4a3
fix tests
2021-06-03 16:08:39 -07:00
Girish Ramakrishnan
b278056941
typo in backup filename
2021-05-27 15:08:51 -07:00
Girish Ramakrishnan
a34bdb9ddf
backups: fix mounting logic of backup settings and cloudron restore
2021-05-27 13:52:05 -07:00