如何使用Cubicweb备份中的数据库?

时间:2022-11-26 23:02:32

I have my backup in the following path:

我在以下路径中有备份:

/etc/cubicweb.d/myblog/backup

And I want to work with it in local,

我想在当地工作,

How can I use it when creating my database?

如何在创建数据库时使用它?

1 个解决方案

#1


In CubicWeb you should use the db-restore command :

在CubicWeb中,您应该使用db-restore命令:

cubicweb-ctl db-restore instance myinstance-2010-07-13_10-22-40.tar.gz

at your instance backup folder, usually:

在您的实例备份文件夹中,通常:

etc/cubicweb.d/myinstance/backup 

You will then have your database restored. Here you have more documentation.

然后,您将恢复数据库。这里有更多文档。

#1


In CubicWeb you should use the db-restore command :

在CubicWeb中,您应该使用db-restore命令:

cubicweb-ctl db-restore instance myinstance-2010-07-13_10-22-40.tar.gz

at your instance backup folder, usually:

在您的实例备份文件夹中,通常:

etc/cubicweb.d/myinstance/backup 

You will then have your database restored. Here you have more documentation.

然后,您将恢复数据库。这里有更多文档。