Marcin Pankowski

Q: backup wiki

Hi, Carsten Menke wrote automated backup scripts for OS X Server. You maybe need them too.

 

http://www.prozesse-im-unternehmen.de/produkte/downloads/category/5-scripts.html

OS X Server

Posted on Aug 20, 2012 12:58 AM

Close

Q: backup wiki

  • All replies
  • Helpful answers

  • by Mark23,

    Mark23 Mark23 Sep 3, 2012 10:18 AM in response to Marcin Pankowski
    Level 3 (975 points)
    Sep 3, 2012 10:18 AM in response to Marcin Pankowski

    Apple made their own documentation: http://support.apple.com/kb/HT5082

  • by redshift82r,

    redshift82r redshift82r Sep 4, 2012 5:45 AM in response to Marcin Pankowski
    Level 2 (325 points)
    Sep 4, 2012 5:45 AM in response to Marcin Pankowski

    Or you could type at the command prompt:

     

    $ sudo serverbackup -cmd backup -source /

    Which will backup all server services or

    $ man ServerBackup

     

    for details of other options

  • by efromwassenaar,

    efromwassenaar efromwassenaar Oct 2, 2012 4:51 AM in response to redshift82r
    Level 1 (4 points)
    Oct 2, 2012 4:51 AM in response to redshift82r

    It looks like the command

    $ ServerBackup -cmd destination

    can tell you the destination of yourr current backup folder. This is the TimeMachine backup folder.

     

    So I changed this backup folder to an empty usb stick for my timemachine backup.

     

    I ran in the command prompt:

    $ sudo serverbackup -cmd backup -source /

     

    In terminal I got feedback about the progress:

    *** nextPath := 40-openDirectory.plist

    *** nextPath := 45-serverSettings.plist

    *** nextPath := 46-postgresql.plist

    *** nextPath := 55-sharePoints.plist

    *** nextPath := 70-webServer.plist

    2012-10-02 13:48:55.397 serverbackup[37420:707] SRC := /Library/Server/Web/Config/apache2/

    DST := /.ServerBackups/webServer

    2012-10-02 13:48:55.418 serverbackup[37420:707] SRC := /etc/certificates/

    DST := /.ServerBackups/webServer

    *** nextPath := 75-MessageServer.plist

    *** nextPath := com.apple.ServerBackup.plist

    curServicePath := /.ServerBackups/openDirectory/openDirectory.browse.plist

    WARNING: Service openDirectory folder does not exist for browsing.

    curServicePath := /.ServerBackups/serverSettings/serverSettings.browse.plist

    curServicePath := /.ServerBackups/postgresql/postgresql.browse.plist

    WARNING: Service postgresql folder does not exist for browsing.

    curServicePath := /.ServerBackups/sharePoints/sharePoints.browse.plist

    curServicePath := /.ServerBackups/webServer/webServer.browse.plist

    curServicePath := /.ServerBackups/MessageServer/MessageServer.browse.plist

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

    <plist version="1.0">

    <dict>

              <key>MessageServer</key>

              <array>

                        <string>MessageServer.conf.tar.gz</string>

                        <string>MessageServer.data.tar.gz</string>

                        <string>MessageServer_Rooms.data.tar.gz</string>

              </array>

              <key>serverSettings</key>

              <dict>

                        <key>CONF</key>

                        <array>

                                  <string>accounts.conf</string>

                                  <string>addressbook.conf</string>

                                  <string>afp.conf</string>

                                  <string>calendar.conf</string>

                                  <string>devicemgr.conf</string>

                                  <string>dirserv.conf</string>

                                  <string>dns.conf</string>

                                  <string>ftp.conf</string>

                                  <string>info.conf</string>

                                  <string>jabber.conf</string>

                                  <string>network.conf</string>

                                  <string>nfs.conf</string>

                                  <string>postgres.conf</string>

                                  <string>radius.conf</string>

                                  <string>san.conf</string>

                                  <string>sharing.conf</string>

                                  <string>smb.conf</string>

                                  <string>swupdate.conf</string>

                                  <string>vpn.conf</string>

                                  <string>web.conf</string>

                                  <string>wiki.conf</string>

                        </array>

                        <key>STATUS</key>

                        <array>

                                  <string>accounts.status</string>

                                  <string>addressbook.status</string>

                                  <string>afp.status</string>

                                  <string>calendar.status</string>

                                  <string>devicemgr.status</string>

                                  <string>dirserv.status</string>

                                  <string>dns.status</string>

                                  <string>ftp.status</string>

                                  <string>info.status</string>

                                  <string>jabber.status</string>

                                  <string>network.status</string>

                                  <string>nfs.status</string>

                                  <string>postgres.status</string>

                                  <string>radius.status</string>

                                  <string>san.status</string>

                                  <string>sharing.status</string>

                                  <string>smb.status</string>

                                  <string>swupdate.status</string>

                                  <string>vpn.status</string>

                                  <string>web.status</string>

                                  <string>wiki.status</string>

                        </array>

              </dict>

              <key>sharePoints</key>

              <array>

                        <string>Groups</string>

                        <string>Public</string>

                        <string>Publieke map van xxx</string>

                        <string>Publieke map van xxxx</string>

                        <string>Publieke map van xxxxx</string>

                        <string>Publieke map van xxxxxx</string>

              </array>

              <key>webServer</key>

              <array>

                        <string>WebServer-1.conf.tgz</string>

                        <string>WebServer-1.conf.tgz-md5</string>

                        <string>WebServer-2.conf.tgz</string>

                        <string>WebServer-2.conf.tgz-md5</string>

              </array>

    </dict>

    </plist>

     

     

    I got a new folder created on the usb stick named Backups.backupdb, but its empty....Any suggestions?

  • by Strontium90,

    Strontium90 Strontium90 Oct 2, 2012 5:46 AM in response to efromwassenaar
    Level 5 (4,077 points)
    Servers Enterprise
    Oct 2, 2012 5:46 AM in response to efromwassenaar

    From what I have been led to believe, ServerBackup will only function when TimeMachine is active.  You can not use the tool without TImeMachine.  This is truly sad but appears to be true.  Would love to be proven wrong.

  • by efromwassenaar,

    efromwassenaar efromwassenaar Oct 2, 2012 7:04 AM in response to Strontium90
    Level 1 (4 points)
    Oct 2, 2012 7:04 AM in response to Strontium90

    In my situation TimeMachine was active. Do you mean I have to complet a full TimeMachine Backup cycle?