How do I restore a zope database from a .fsz file?
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
精彩评论