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

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

Q: What about other services that depends on PostgreSQL?

How do I export and import caldav please?

Posted on Apr 15, 2013 8:31 AM

Close

Q: What about other services that depends on PostgreSQL?

  • All replies
  • Helpful answers

  • by Matthew Jason,Solvedanswer

    Matthew Jason Matthew Jason Apr 15, 2013 9:42 PM in response to Matthew Jason
    Level 1 (8 points)
    Peripherals
    Apr 15, 2013 9:42 PM in response to Matthew Jason

    This is what calendarserver_backup does to backup...

     

    sudo pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket" --username=caldav --clean --no-privileges --file=/path/to/your_dump_file caldav

     

    ...and restore...

     

    sudo psql -h "/Library/Server/PostgreSQL For Server Services/Socket" --username=caldav --file=/path/to/your_dump_file

     

    By user: ~morgen