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

Cannot restore to a local database without Docker #265

Open
JeffreyNovotny opened this issue Mar 2, 2023 · 1 comment
Open

Cannot restore to a local database without Docker #265

JeffreyNovotny opened this issue Mar 2, 2023 · 1 comment

Comments

@JeffreyNovotny
Copy link

It looks like a datastore cannot be used to restore to a local database unless Docker is being used. I was running a proof of concept and had dumped the data to a local datastore . I then wanted to populate a local database with the transformed data. It allowed me to dump the data to a sql dump file, however.

replibyte -c conf.yaml dump list
name | size | when | compressed | encrypted
--------------------+-----------+----------------+------------+-----------
dump-1677767483822 | 982 Bytes | 28 minutes ago | true | false

replibyte -c conf.yaml dump restore local -v latest
error: you must use --output or --image [database_type] option

replibyte -c conf.yaml dump restore local -v latest -i mysql
cannot find 'docker' binary in path

*** The following works.
replibyte -c conf.yaml dump restore local -v latest -o > dump.sql

Datastore and database config from YAML file as follows (ids/ips/pswds/etc redacted):
datastore:
local_disk:
dir: /home/userid/replibyte/data
destination:
connection_uri: mysql://dbuser:password@127.0.0.1:3306/seed

(Note: I ran another quick test and found a local connection_url (i.e. @127.0.0.1:3306) format works for the source database.)

@evoxmusic
Copy link
Contributor

Hi @JeffreyNovotny , thanks for reporting this issue. I will take a look after that I've finished working on #257

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

2 participants