SID-00968: restore from backup after system crash
| Status: |
Answered |
TWiki version: |
4.1.2 |
Perl version: |
5.8.8 |
| Category: |
CategoryInstallation |
Server OS: |
Ubuntu |
Last update: |
14 years ago |
Hi, our server crashed (lost 2 drives in a raid 5
I have a newly build twiki server and would require to restore the twiki from a good full sytem backup of the old twiki.
From what I can read, I found the following, Correct me if I am wrong.
1- copy the data and pub folders keeping the permissions. 2- replace .htpasswd with the .htpasswd from the backups?
I understand copying the data and pubs, but will the .htpasswd file restore the user accounts or will the accounts need to be restored from another file or re-created manually?
thanks
--
MarcLeveille - 2010-09-14
Discussion and Answer
Do you restore to the same TWiki version? If so, simply restore all
twiki/data and
twiki/pub, it will carry over user homepages in
twiki/data/Main as well as
.htpasswd.
If you upgrade to a newer TWiki make sure to exclude
twiki/data/TWiki,
twiki/pub/TWiki,
twiki/data/Main,
twiki/pub/Main. Then you need to restore user homepages and other non-system pages in
twiki/data/Main. You need also restore the
.htpasswd.
See also
MoveInstallationToOtherMachine,
RelocatingTwikiSite,
MigratingDataFrom1TwikiTo2Twiki,
HowToMigrateWikiBetweenServers,
HowToRestoreFromBackup.
--
PeterThoeny - 2010-09-14
Hi I followed your instructions, but had one difference. On my newly built Turnkey twiki VM Appliance which includes Ubuntu 8.04 and Twiki 4.1 did not have a /var/www/twiki/data folder. So I copied all of my backup /twiki/data directory to it. All my copies were done keeping all permissions. This copied my .httpasswd file which I can see all the users.
I rebooted, but nothin seems different on my twiki. Do I need to modify any files manually?
thanks
--
MarcLeveille - 2010-09-15
Hi, I also noticed that on my new twiki I only have the following in the Twiki folder
root@twiki:/var/www/twiki# ls
data pub
root@twiki:/var/www/twiki#
And on my backup folder for /var/www/twiki, I have
root@twiki:/usr/twiki# ls
AUTHORS
TWikiHistory.html index_e.html~ styles
ActionTrackerPlugin.tgz_FILES
TWikiReleaseNotes04x01.html index_f.html subdir-htaccess.txt
ActionTrackerPlugin_installer
TWikiUpgradeGuide.html index_f.html~ templates
BlogAddOn.zip_FILES
TagMePlugin.tgz_FILES lib test
BlogAddOn_installer
TagMePlugin_installer locale tools
COPYING bin pub twiki_httpd.conf~
COPYRIGHT data pub-htaccess.txt wysiwyg.cgi~
CalendarPlugin_installer images readme.txt wysiwyg_installer.cgi
INSTALL.html index.html~ robots.txt
LICENSE index_e.html root-htaccess.txt
root@twiki:/usr/twiki#
should I be copying more than just twiki/data and twiki/pub?
thanks
--
MarcLeveille - 2010-09-15
Hi , I found data in /var/lib/twiki/data and /var/lib/twiki/data on this new appliance. I created a new web to see what happened. I called it marcweb. the weird thing is that it created in the /var/www/twiki/pub, where I copied my files as indicated in the restore procedure. I also ended finding it in the /var/lib/twiki/data and /var/lib/twiki/pub, but not the other webs I copied so I think that this is the path for the data in my twiki server.
I will revert back my VM snapshot and try it again using the /var/lib/twiki location.
my question is, I don't know the admin user password because the admin left the organization, can I vi the .htpasswd file and keep my admin user and copy the users from the backup .htpasswd file?
thanks
and sorry for the long posts, I am reletavely new to Twiki and must rebuild a server that was droped on my lap.
At least I have backups!!
Regards
--
MarcLeveille - 2010-09-15
TWiki has now an easy
point & click solution to upgrade TWiki with the help of the
BackupRestorePlugin.
--
PeterThoeny - 2011-09-06
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.