SID-01351: BackupRestorePlugin options missing
Status: |
Answered |
TWiki version: |
5.1.0 |
Perl version: |
5.8 |
Category: |
BackupRestorePlugin |
Server OS: |
CentOs 5.7 |
Last update: |
12 years ago |
I made a backup of a TWiki 4.2.0 installation on Windows using the
BackupRestorePlugin backuprestore create_backup
script from the command line. As far as I can tell the backup zip file was made successfully. (Note that I did get an error from WinZip when I ran the script that said
Error: Invalid ZIP request ( .svn\).
I think this has to do with code in
TWiki::Plugins::BackupRestorePlugin::Core
that tries to exclude certain directories from the backup, such as SVN directories. I'm not entirely sure what this error is about, but I suspect that this zip error isn't the source of the problem. I commented out the lines in Core.pm that I thought were responsible for the zip error, and made a second backup without error. However both backups (the one that generated a zip error, and the one that didn't) have the problem I describe below. The lines I commented out are:
my @exclude = ( '-x', '*.svn/*' );
$this->_createZip( $name, $base, $dir, @exclude );
push( @exclude, '*/tmp/*', '*/registration_approvals/*' );
)
I made the backup because I want to move an existing TWiki installation to a new server with an upgraded TWiki version. The newer TWiki is the TWiki VMware Virtual Machine, which has TWiki 5.1.0, CentOS 5.7, and is installed on a Windows host. I tried to use the
BackupRestoreConsole on the newer TWiki to restore from the backup, but I'm having some problems. Specifically on the
BackupRestoreConsole when I click the
Details / Restore ...
button associated with the backup I want to restore, there are no options under the
Restore webs
section. I looked in the backup zip file and the webs I would like to restore are present in the zip file.
In case this is helpful, initially when I tried to restore the backup, I didn't even have options under the
Restore Options
section. Then I upgraded the
BackupRestorePlugin, and I got options under that section.
Any help with restoring my backup would be greatly appreciated. Thanks.
--
IsaacSpencer - 2011-12-13
Discussion and Answer
On the first problem, which zip utility do you use on Windows? It is probably safest to use the GNU zip for Windows,
http://gnuwin32.sourceforge.net/packages/zip.htm
On restore, there are two issues: First, you need to upgrade the
BackupRestorePlugin to get the restore options (as you did) - the feature was not available at the time of the TWiki-5.1.0 release. Secondly, a web-based backup and restore is currently not supported on a native Windows installation of TWiki due to a limitation of a CPAN library this plugin depends on. The limitations section needs to be updated, it currently only states that web-based
backup is currently not supported.
Workaround for Windows: You need to manually unpack the zip on the new server and move the folders into the proper directories. See
TWikiUpgradeGuide
--
PeterThoeny - 2011-12-14
Thanks for your help.
I used WinZip32 to backup my old TWiki. I'll try the GNU zip for Windows like you suggested.
I had read the documentation for
BackupRestorePlugin that said that a web-based backup is not supported on a native Windows installation, that's why I backed up my older TWiki (which was installed on Windows) with the backup script instead trying to use the web interface.
The way the documentation is worded made me think that the limitation with the web-based backup/restore has to do with the OS that TWiki is
installed on. Because my newer TWiki is installed on Linux (albeit a virtual one on a Windows host, but I don't see why that would matter), I assumed I could use the web-based restore. When I tried the web-based restore, I used Firefox on Windows, but I didn't think restoring from a Windows web browser would be an issue because the TWiki I was working with was installed on a Linux OS. I'll try the workaround you suggested for restoring my older TWiki, but can you explain why this is necessary since my newer TWiki is installed on Linux?
--
IsaacSpencer - 2011-12-14
My bad, you have been describing loud and clear in your original post that you restore to CentOS. So yes, you can use this plugin to restore, regardless of the browser. The issue is the backup file. You should be OK if you install the GNU zip on Windows.
--
PeterThoeny - 2011-12-14
I just wanted to report that using Gnu zip for Windows to make my backup of my older TWiki fixed my problem of missing options under the
Restore webs section. Thanks for your help.
--
IsaacSpencer - 2011-12-19
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.