开发者

How do I restore a zope database from a .fsz file?

开发者 https://www.devze.com 2023-03-26 16:47 出处:网络
I have a test environment which I am trying to restore my data into. I backed up my live site using repozo, but the zope documentation has disappeared on their new site.

I have a test environment which I am trying to restore my data into. I backed up my live site using repozo, but the zope documentation has disappeared on their new site.

This is the command I am trying:

/home/adrigen/atf/bin/repozo --recover --output=/home/adrigen/atf/var/filestorage/Data.fs --repository=/home/adrigen/atf/var/filestorage/backup/

This command 开发者_StackOverflowcompletes without any failure message, but the data doesn't appear in plone (3).

Are there any tips or articles which will help me do this?


The command looks fine at first glance, so perhaps something else is wrong. You did stop the zope instance first, and if this is a zeo setup you did stop the zeo server first?

If you have the .fsz file, then you can also use standard unzipping tools. The .fsz file is simple a gzipped file. It may help to rename it to .fs.gz, otherwise some tools will refuse to work as the file does not have the expected extension.

I like to do it like this:

gzcat mybackup.fsz > var/filestorage/Data.fs

or similarly:

cat mybackup.fsz | gunzip > var/filestorage/Data.fs
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号