diff --git a/cmd/internal/database/meilisearch/meilisearch.go b/cmd/internal/database/meilisearch/meilisearch.go index dcabb12..b5c2224 100644 --- a/cmd/internal/database/meilisearch/meilisearch.go +++ b/cmd/internal/database/meilisearch/meilisearch.go @@ -266,8 +266,8 @@ func (db *Meilisearch) moveDumpToBackupDir() error { } backupDst := path.Join(constants.BackupDir, latestStableDump) - db.log.Infow("move dump", "from", db.latestStableDumpDst, "to", backupDst) - copy := exec.Command("mv", "-v", db.latestStableDumpDst, backupDst) // nolint:gosec + db.log.Infow("copy dump", "from", db.latestStableDumpDst, "to", backupDst) + copy := exec.Command("cp", "-v", db.latestStableDumpDst, backupDst) // nolint:gosec copy.Stdout = os.Stdout copy.Stderr = os.Stderr err = copy.Run()