[CalendarServer-users] Backing up Calendar Server Data in OS X Server 10.9.1 (server app v3.0.2)

Paul E Roche roche at chapman.com
Fri Jan 31 10:39:19 PST 2014


Hello all. 

I was trying to make a tar file backup of Calendar server data to test a backup/restore procedure for calendar server  - I tried to follow the instructions I found in the post quoted below for how to properly backup a caldav server for migration to new hardware - but the calendarserver_backup command is failing for me under Mac OS X 10.9.1 server. (server.app 3.0.2) 

I do see 5432 via netstat- can you help me troubleshoot what to try next, or how to change the backup command so it completes successfully?

Thanks in advance.

Paul

bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_backup backup /tmp/caldata.tgz
Failed to dump database; error: /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump failed:
pg_dump: [archiver (db)] connection to database "caldav" failed: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?
 (exit code = 1)

bash-3.2# netstat -an | grep 5432 
 bb1d67b74d67ec7 stream      0      0                0  bb1d67b7274d11f                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b74d68e67 stream      0      0                0  bb1d67b74d68827                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b74d68057 stream      0      0                0  bb1d67b768bb247                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b75f69507 stream      0      0                0  bb1d67b75f68ec7                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b768bc827 stream      0      0                0  bb1d67b768bc9b7                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b7274db47 stream      0      0                0  bb1d67b72622adf                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b82c53ae7 stream      0      0                0  bb1d67b726246ff                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b71dca30f stream      0      0                0  bb1d67b74d694a7                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b74d69187 stream      0      0                0  bb1d67b74d6956f                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b7274d2af stream      0      0                0  bb1d67b7274d697                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b768bc8ef stream      0      0                0  bb1d67b75a333d7                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b726cd247 stream      0      0                0  bb1d67b726cfae7                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b7262311f stream      0      0                0  bb1d67b75a33d37                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b74d68cd7 stream      0      0                0  bb1d67b768bd24f                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b726235cf stream      0      0                0  bb1d67b7593ca7f                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b82c53c77 stream      0      0                0  bb1d67b768bbec7                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b726cf957 stream      0      0                0  bb1d67b7274e317                0                0 /Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432
 bb1d67b726cdf8f stream      0      0                0  bb1d67b74d6762f                0                0 /Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432
 bb1d67b75f68dff stream      0      0                0  bb1d67b726cea7f                0                0 /Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432
 bb1d67b726cdec7 stream      0      0                0  bb1d67b7593d88f                0                0 /Library/Server/Wiki/PostgresSocket/.s.PGSQL.5432
 bb1d67b75a34377 stream      0      0                0  bb1d67b75f68d37                0                0 /Library/Server/Wiki/PostgresSocket/.s.PGSQL.5432
 bb1d67b74d693df stream      0      0                0  bb1d67b75f695cf                0                0 /Library/Server/Wiki/PostgresSocket/.s.PGSQL.5432
 bb1d67b75a33567 stream      0      0  bb1d67b74716297                0                0                0 /Library/Server/Wiki/PostgresSocket/.s.PGSQL.5432
 bb1d67b74d6717f stream      0      0                0  bb1d67b75a33ec7                0                0 /Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432
 bb1d67b71dca17f stream      0      0  bb1d67b77e04837                0                0                0 /Library/Server/ProfileManager/Config/var/PostgreSQL/.s.PGSQL.5432
 bb1d67b75f68a17 stream      0      0                0  bb1d67b75f6862f                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b72623057 stream      0      0                0  bb1d67b75f69377                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
 bb1d67b74d688ef stream      0      0  bb1d67b744a5657                0                0                0 /var/run/caldavd/ccs_postgres_3d403b3009fe0c830944d87bd751fbe9/.s.PGSQL.5432
bash-3.2# 
Migrating Calendar server data from	Server	10.8 to 10.8

Morgen Sagen sagen at apple.com 
Sun Aug 25 17:33:29 PDT 2013

Previous message: [CalendarServer-users] Migrating Calendar server data from Server	10.8 to 10.8
Next message: [CalendarServer-users] Migrating Calendar server data
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Normally you would choose to migrate data during the OS X install process, or using the Migration Assistant.  However, calendar server does have a script to do what you need.

On the source system, run this in Terminal:

   sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_backup backup /tmp/caldata.tgz

Next, copy /tmp/caldata.tgz from the source system to /tmp/caldata.tgz on the destination system.

Finally, on the destination system, run this in Terminal:

   sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_backup restore /tmp/caldata.tgz

The caldata.tgz file will contain your calendar and contacts data, including attachments, locations, and resources.  However, users and groups live in OpenDirectory and will not be copied over.  If your users and groups need to be copied over, then your best bet is to use Migration Assistant to copy everything.


On Aug 25, 2013, at 3:47 PM, Frank Bonomo <fbonomo at sva.edu> wrote:

> Hello all,
> 
> I'm trying to figure out how to migrate calendar service data from a 10.8 OSX Server to a new 10.8 OSX Server installation.  I've been trying to use the 70_calendarmigrator.py script, and have had varying success just getting it to find the caldav.plists from the previous server.
> 
> Has anyone successfully migrated from 10.8 to 10.8?
> What's involved to do this correctly?
> 
> 
> --
> Frank Bonomo, System Administrator / Summer Program Coordinator
> MFA in Interaction Design | School of VISUAL ARTS
> 

source
https://lists.macosforge.org/pipermail/calendarserver-users/2013-August/002293.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-users/attachments/20140131/87334f12/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3203 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/calendarserver-users/attachments/20140131/87334f12/attachment-0001.p7s>


More information about the calendarserver-users mailing list