Skip to content

Commit 77ec0f4

Browse files
committed
fix: Update database restore command to use correct arguments for proper functionality
1 parent 5f1f7ed commit 77ec0f4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/pocketstream/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ func databaseRestore() error {
1818

1919
if _, err := os.Stat(cfg.DBPath); os.IsNotExist(err) {
2020
slog.Info("Database file not found, attempting restore", "path", cfg.DBPath)
21-
cmd := exec.Command("/litestream",
22-
"restore", "-config", cfg.ConfigPath, "-if-db-not-exists")
21+
cmd := exec.Command("/litestream", "restore", "-config", cfg.ConfigPath, cfg.DBPath)
2322
cmd.Stdout = os.Stdout
2423
cmd.Stderr = os.Stderr
2524
if restoreErr := cmd.Run(); restoreErr != nil {

0 commit comments

Comments
 (0)