Skip to content
Discussion options

You must be logged in to vote

If you've made a local backup with pscale database dump and you want to restore it to a new empty database the simplest way would be to run pscale database restore-dump <database> <branch> --dir <path/to/dump/directory>. You'll have to rename the dump files if your new database has a different name.

You could also read in the dump files on the command line or with source filename.sql just be sure to load the schema before the data.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fooforge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants