Files
mc-proxy/internal/db/snapshot.go
Kyle Isom feeadc582b Migrate module path from kyle/ to mc/ org
All import paths updated to git.wntrmute.dev/mc/. Bumps mcdsl to v1.2.0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 02:05:59 -07:00

12 lines
290 B
Go

package db
import (
mcdsldb "git.wntrmute.dev/mc/mcdsl/db"
)
// Snapshot creates a consistent backup of the database using VACUUM INTO.
// The destination file is created with 0600 permissions.
func (s *Store) Snapshot(destPath string) error {
return mcdsldb.Snapshot(s.db, destPath)
}