HT5082: Lion Server: Migrating and copying wiki data from Mac OS X Server v10.6

Learn about Lion Server: Migrating and copying wiki data from Mac OS X Server v10.6
Bolla_

Q: How to: Recover Wiki after Time Machine restore of OSX 10.8

If you restored your Mountain Lion Server from a Time Machine backup, your Wiki is gone. This is the solution:

 

1. Extract the file /Library/Server/PostgreSQL For Server Services/Backup/dumpall.psql.gz of your Backup and place it in /tmp/dumpall.psql or elswhere.

 

2. Run the followning commands:

 

sudo chown -R _teamsserver:_teamsserver /Library/Server/Wiki/FileData

sudo chmod -R +a "www allow search" /Library/Server/Wiki/FileData

sudo serveradmin stop wiki

sudo serveradmin start postgres_server

cd /Applications/Server.app/Contents/ServerRoot/usr/bin/

sudo ./dropdb -h "/Library/Server/PostgreSQL For Server Services/Socket" -U collab collab

sudo ./createdb -h "/Library/Server/PostgreSQL For Server Services/Socket" -U collab collab

 

sudo psql -U _postgres -d collab  -h "/Library/Server/PostgreSQL For Server Services/socket" -f /tmp/dumpall.psql

 

3. Done! Restart the Wiki Server

OS X Server, Mountain Lion Server

Posted on Sep 20, 2013 6:35 AM

Close

Q: How to: Recover Wiki after Time Machine restore of OSX 10.8

  • All replies
  • Helpful answers

  • by tim_r_66,

    tim_r_66 tim_r_66 Nov 26, 2013 3:44 PM in response to Bolla_
    Level 1 (50 points)
    Nov 26, 2013 3:44 PM in response to Bolla_

    Bolla,

     

    Great guide.  Thank you for posting this.  I will be recovering from a system meltdown :-~ when I return from vacation.  I could restore from the Time Machine backup, and may still do so, but what considering building a Mavericks-based server and then recovering the data.

     

    Have you tried something similar to this?  The concern that I have is mapping the users.  I may have a usable OD backup that I can use to get the users back, and then bring the wiki back into play?

     

    Again, just curious if you've tried something similar or see any problems with my approach.

     

    Thanks!

     

    Tim