You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/dtable-events-conf.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,8 @@ enabled = true
46
46
47
47
### `[DATABASE]`
48
48
49
-
??? success "Database can configure in .env"
49
+
??? success "Database can be configured in .env"
50
+
50
51
From SeaTable 5.3, you can specify the database configurations in [`.env`](./environment-variables.md#table-of-settings). There is no need to keep this configuration in your `dtable-events.conf`.
51
52
52
53
| Parameter | Description | Default |
@@ -60,7 +61,7 @@ enabled = true
60
61
61
62
### `[REDIS]`
62
63
63
-
??? success "Redis can configure in .env"
64
+
??? success "Redis can be configured in .env"
64
65
From SeaTable 5.3, you can specify the redis configurations in [`.env`](./environment-variables.md#table-of-settings). There is no need to keep this configuration in your `dtable-events.conf`.
|`interval`| The interval for generating snapshots of a base, if there are changes to the base. Unit is in seconds. | 86400 |
103
105
|`enable_cleanup`| Controls snapshot cleanup. Activate on only one node in multi-server setups. | true |
104
106
|`keep_days`| Specifies the snapshot retention period in days. Older snapshots are deleted. As of version 5.2, the default is 180 days; previously, it was unlimited (0). | 180 |
105
107
|`keep_frequency_days`| Specifies daily snapshot period for changed bases. After this, only one snapshot per month is kept. Default is 0 (always daily). Requires keep_days to be set and > `keep_frequency_days`. | 0 |
108
+
|`cleanup_at`| Specifies the time when old snapshots are deleted. | 03:00 |
109
+
110
+
By default, SeaTable creates daily snapshots for changed bases, deleting snapshots older than 180 days. The cleanup
106
111
107
-
!!! warning "Example of new tiered snapshot retention"
112
+
**Since version 5.2**, SeaTable offers a tiered retention strategy for snapshots. This approach balances recent, detailed backups with efficient long-term storage.
113
+
For example, setting `keep_days = 180` and `keep_frequency_days = 7` would retail:
108
114
109
-
By default, SeaTable creates daily snapshots for changed bases, deleting snapshots older than 180 days.
115
+
- Daily snapshots for the past week
116
+
- Monthly snapshots for the past six months, except for the past week.
110
117
111
-
Since version 5.2, SeaTable offers a tiered retention strategy for snapshots. This approach balances recent, detailed backups with efficient long-term storage.
112
-
For example, setting `keep_days = 180` and `keep_frequency_days = 7` would retail:
118
+
#### Possible combinations of `keep_days` and `keep_frequency_days` for new tiered snapshot retention
113
119
114
-
- Daily snapshots for the past week
115
-
- Monthly snapshots for the past six months, except for the past week.
120
+
| Condition | Action |
121
+
| --- | ---- |
122
+
|`keep_days = 0`| No snapshots are deleted, no matter of `keep_frequency_days`. |
123
+
|`keep_frequency_days = 0` and `keep_days > 0`| All snapshots older than `keep_days` are deleted. |
124
+
|`keep_frequency_days > 0` and `keep_days > 0`| Snapshots older than `keep_days` are deleted immediately, while snapshots older than `keep_frequency_days` but not exceeding `keep_days` are grouped by month to apply frequency-based cleaning logic. |
0 commit comments