Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate "restore backup" from "restore snapshot" #13

Open
mehaase opened this issue Oct 22, 2018 · 0 comments
Open

Separate "restore backup" from "restore snapshot" #13

mehaase opened this issue Oct 22, 2018 · 0 comments

Comments

@mehaase
Copy link
Contributor

mehaase commented Oct 22, 2018

There is one restore method in the interface that serves double duty: it restores full database backups (including data) and it also restores snapshots (DDL only). Backups can often be done more efficiently than a snapshot, i.e. a SQLite database can be backed up by copying a file and Postgres has a binary database backup format. However, because there is only one restore command, backups must be written as SQL files. If there were separate "restore backup" and "restore snapshot" methods, then "restore backup" could use the more efficient approach, and "restore snapshot" would use SQL files.

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

No branches or pull requests

1 participant