Restore backups with DirectoryStorage
Andrés Arias Camaño <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody!
Probably this situation has already been discussed other message threads,
but I couldn't find any reference of it, so first I want to apologize if
this is an old and trivial question, and also thank you in advance for any
reference or help you may provide me.
My name is Andres and I'm developing a site using Zope 2.7.6 and
DirectoryStorage 1.1.9 as database interface, under a Linux environment. I
would like to ask you how should I restore the backups I create using the
backup.py tool included in the DirectoryStorage distribution. I create the
backups using this command:
${pythonPath} ${snapshotPath} ${directoryFSPath} - ${pythonPath}
${backupPath} prefix ${backupPrefix} full
Where:
pythonPath=/usr/local/zope2.7.6/bin/python
snapshotPath=/usr/local/zope2.7.6/lib/python/DirectoryStorage/snapshot.py
directoryFSPath=/usr/local/zope2.7.6/instance/var/directoryfs
backupPath=/usr/local/zope2.7.6/lib/python/DirectoryStorage/backup.py
backupPrefix=mysite_zope_backup
After this command, I get a tgz file like this: mysite_zope_backup-1.tgz
How should I restore this backup? Should I only unzip this tgz under my
directorystorage directory ${directoryFSPath} of my zope instance (shutting
down zope, unzipping and then start zope), or is there a tool I need to use
to perform this task? Also, please let me know if there are details that
should be considered when restoring a backup from server A to server B (with
the same Zope, DirectoryStorage and other products and OS), just in case
this is required in our project.
Thanks in advance for your help!
All my best,
Andres
__________________________________
Andrés Arias Camaño
Avantica Technologies
Phone: (506) 283-9100 ext. 41
Fax : (506) 253-7451
Email: [email protected]
http://www.avantica.net