Documentation
¶
Overview ¶
Package dump manages the scheduled dump of the source database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler runs engine.Dump on a cron schedule and atomically replaces the local dump file on success.
func New ¶
func New(cfg *config.Config, eng engine.Engine, events *store.EventStore, docker *client.Client) *Scheduler
New creates a Scheduler. Call Start() to begin the cron loop.
func (*Scheduler) RunOnce ¶
RunOnce executes a single dump cycle. When obfuscation rules are configured, the raw dump is restored into a staging container, scrubbed, and re-dumped so the final dump file has PII already removed before any copy restores it.
- Dump source → <destPath>.raw (or .tmp when no obfuscation rules)
- If obfuscation rules: restore into staging, apply rules, re-dump → <destPath>.tmp
- Atomically rename .tmp → destPath
Click to show internal directories.
Click to hide internal directories.