启动'rethinkdb-restore'时出错:没有这样的文件或导演

时间:2016-11-09 11:06:50

标签: rethinkdb

我正在从我的本地系统导入在AWS服务器上移动的数据库备份

使用命令恢复重新考虑db:

rethinkdb restore /home/league_ally/rethinkexport.tar.gz

发生以下错误:

Error when launching 'rethinkdb-restore': No such file or directory
The rethinkdb-restore command depends on the RethinkDB Python driver,    
which must be installed.
If the Python driver is already installed, make sure that the PATH 
environment variable
includes the location of the backup scripts, and that the current  
user has permission to
access and run the scripts.
Instructions for installing the RethinkDB Python driver are available  
here:
http://www.rethinkdb.com/docs/install-drivers/python/

2 个答案:

答案 0 :(得分:2)

正如您已经完成的那样,第一步是安装rethinkdb Python包。例如:

$ pip install rethinkdb

然后,如果您仍然看到以下错误:

$ rethinkdb-restore
Error when launching 'rethinkdb-restore': No such file or directory

尝试将其作为:

运行
$ python -mrethinkdb._restore
Usage: rethinkdb restore FILE [-c HOST:PORT] ...

答案 1 :(得分:1)

我在恢复应用中的数据时遇到了同样的问题。我发现PIP需要升级。升级PIP后,我能够恢复我的数据库