Skip to content

feat: add secure -C option to support VACUUM INTO as an alternative to .backup command - #8

Merged
efrecon merged 1 commit into
efrecon:masterfrom
lucarota:feature/vacuum
Jul 31, 2026
Merged

feat: add secure -C option to support VACUUM INTO as an alternative to .backup command#8
efrecon merged 1 commit into
efrecon:masterfrom
lucarota:feature/vacuum

Conversation

@lucarota

Copy link
Copy Markdown
Contributor

Hi everyone,

Issue #7

It adds support for using VACUUM INTO as the backup command.

I introduced the SQLITE_BACKUP_COMMAND environment variable together with the -C / --command CLI option. The default is still .backup, so the current behavior doesn't change unless a different command is explicitly selected.

To avoid running arbitrary SQL, the input is validated and only .backup and VACUUM INTO are accepted.

If VACUUM INTO is requested but the backup falls back to a plain SQL dump, a warning is written to the log.

Ciao,
Luca

@lucarota
lucarota requested a review from efrecon as a code owner July 29, 2026 19:25

@efrecon efrecon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@efrecon
efrecon merged commit e47fbe3 into efrecon:master Jul 31, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants