Educational ICT Virtualisation Specialist

Twitter LinkedIn E-mail
Precedence Technologies Ltd
Technology House, 36a Union Lane
Cambridge, CB4 1QB, United Kingdom
T: +44 (0)8456 446 800 / +44 (0)1223 359900
E: enquiries@precedence.co.uk
MacOSX

Jump To: Support > KB > Backup > MacOSX

MacOS X to NetManager Backup server

  1. You will need to manually configure rsyncd by creating a /etc/rsyncd.conf file such as the following. For each directory tree you want to backup, create a new section like the [Users] one below:
    uid = root
    gid = wheel
    auth users = backup
    secrets file = /etc/rsyncd.secrets

    [Users]
    path = /Users
    comment = Home folders
  2. You will also need to create a /etc/rsyncd.secrets file with the configured username and password. The file should look like:
    backupuser:mypassword
  3. Set the file permissions on the configuration files with the following commands:
    chmod 644 /etc/rsyncd.conf
    chmod 600 /etc/rsyncd.secrets
    
  4. Create a LaunchDaemon for rsync e.g. /Library/LaunchDaemons/rsync.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Disabled</key>
    <false/>
    <key>Label</key>
    <string>rsync</string>
    <key>Program</key>
    <string>/usr/bin/rsync</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/bin/rsync</string>
    <string>--daemon</string>
    </array>
    <key>inetdCompatibility</key>
    <dict>
    <key>Wait</key>
    <false/>
    </dict>
    <key>Sockets</key>
    <dict>
    <key>Listeners</key>
    <dict>
    <key>SockServiceName</key>
    <string>rsync</string>
    <key>SockType</key>
    <string>stream</string>
    </dict>
    </dict>
    </dict>
    </plist>
  5. Set the file permissions on the LaunchDaemon plist file with the following command:
    chmod 644 /Library/LaunchDaemons/rsync.plist
    
  6. If you don't want to restart the machine, load the daemon
    sudo launchctl load -w /Library/LaunchDaemons/rsync.plist
  7. Open firewall for TCP port 873 if necessary
  8. Add the server to list of servers to be backed up as described here
  9. Test with runrsync -l on the backup server
© Copyright Precedence Technologies 1999-2024
Page last modified on September 12, 2019, at 12:20 PM by sborrill