delmod

Q: Restore Wiki in Mavericks from Lion Server

I´m trying to restore my Wiki Data from a Lion Server to Mavericks. I'm following this instructions, OS X Server: Migrating and copying wiki data from Lion Server,

 

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 -u _postgres ./pg_restore -h "/Library/Server/PostgreSQL For Server Services/Socket" -d collab -U collab --single-transaction /tmp/collab.pgdump

sudo serveradmin start wiki

 

but when I introduce the line "sudo serveradmin start postgres_server", the answer is always "postgres_server:error = "CANNOT_START_SERVICE_ERR"".

 

Somebody may help me?

Posted on Jul 23, 2014 2:47 AM

Close

Q: Restore Wiki in Mavericks from Lion Server

  • All replies
  • Helpful answers

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Jul 23, 2014 4:37 PM in response to delmod
    Level 10 (207,995 points)
    Applications
    Jul 23, 2014 4:37 PM in response to delmod

    Those instructions don't apply to Mavericks Server.

     

    OS X Server: Upgrade and migration from Lion Server or Snow Leopard Server

  • by delmod,

    delmod delmod Jul 23, 2014 10:08 PM in response to Linc Davis
    Level 1 (0 points)
    Jul 23, 2014 10:08 PM in response to Linc Davis

    Thanks Linc:

     

    I followed that instructions first but I had a persistent problem with "Contacts and Calendars". Assistant Migration doesn't allow a selective importation. Definitely I decided a clean installation (I have only a few users and services and I can afford). I backup and export all data I install a new fresh Mavericks Server and I import all data again. Now all it's going fine and my "final point" is restore the Wiki. I have the "collab.pgdump" exported from Lion Server and "FileData" files backup.

     

    ¿Do you know if it's possible to restore in Mavericks from it?

     

    Thanks for your interest.

  • by delmod,

    delmod delmod Jul 24, 2014 4:09 AM in response to Linc Davis
    Level 1 (0 points)
    Jul 24, 2014 4:09 AM in response to Linc Davis

    I can update a copy of the old Lion Server to Mavericks. The Wiki files seems not be corrupted, only de files related with Contacts and Calendars. Then now I would have two Mavericks servers. Because the OD is the same, do you think it will work if I copy this two files from one to another?.

     

    /Library/Server/PostgreSQL For Server Services

    /Library/Server/Wiki

     

    What will happen with other services, specially with Contacts and Calendars?

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Jul 24, 2014 8:17 AM in response to delmod
    Level 10 (207,995 points)
    Applications
    Jul 24, 2014 8:17 AM in response to delmod

    The first of those items is not used in Mavericks, and should in fact contain no files. As for the second, it might work.

  • by delmod,

    delmod delmod Jul 25, 2014 4:35 AM in response to Linc Davis
    Level 1 (0 points)
    Jul 25, 2014 4:35 AM in response to Linc Davis

    It doesn't work.

     

    I have a very large wiki. I can not believe that there is no way to export it from Server to Lion Server and retrieve it in Mavericks Server.

     

    Thanks for your help.

  • by Linc Davis,

    Linc Davis Linc Davis Jul 25, 2014 8:33 AM in response to delmod
    Level 10 (207,995 points)
    Applications
    Jul 25, 2014 8:33 AM in response to delmod

    What happens in the logs when you try to start the service? System log and Wiki error log.

  • by delmod,

    delmod delmod Jul 25, 2014 8:43 AM in response to Linc Davis
    Level 1 (0 points)
    Jul 25, 2014 8:43 AM in response to Linc Davis

    I'm trying again with the instructions I have found here: Wiki migration issues to OSX Server Mavericks.

    To do a Wiki backup in the old computer with Mavericks:

     

    sudo mkdir /Volumes/Mavericks/temp

    sudo /pg_dump -h "/Library/Server/Wiki/PostgresSocket" --format=c --compress=9 --blobs --username=collab --file=/Volumes/Mavericks/temp/collab.pgdump collab


    Restore in the new Mavericks computer:


    Paste the Wiki folder of the old computer in Server of the new one

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

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

    pg_restore -h "/Library/Server/Wiki/PostgresSocket" -d collab -U collab --single-transaction /temp/collab.pgdump


    I'll tell to you the results and the logs if fail.


    Thanks

  • by delmod,

    delmod delmod Jul 25, 2014 11:36 PM in response to delmod
    Level 1 (0 points)
    Jul 25, 2014 11:36 PM in response to delmod

    Now when I'm trying to restore I have always "pg_restore: command not found". There is a sintaxis mistake? (My folder with the collab.pgdump is "temp2")

     

    servidor:~ admin$ sudo pg_restore -h "/Library/Server/Wiki/PostgresSocket" -d collab -U collab --single-transaction /temp2/collab.pgdump

    sudo: pg_restore: command not found

     

    Thanks

  • by Linc Davis,

    Linc Davis Linc Davis Jul 26, 2014 6:44 AM in response to delmod
    Level 10 (207,995 points)
    Applications
    Jul 26, 2014 6:44 AM in response to delmod

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

  • by delmod,

    delmod delmod Jul 27, 2014 2:13 PM in response to Linc Davis
    Level 1 (0 points)
    Jul 27, 2014 2:13 PM in response to Linc Davis

    This has been a weekend with a lot of tests. In order to avoid duplicate answers I have continued the conversation in the post https://discussions.apple.com/message/26357019?ac_cid=tw123456#26357019

    I apreciate a lot your opinion and I will be happy if you read it. Thank you very much.