MacOSX
Jump To: Support > KB > Backup > MacOSX
MacOS X to NetManager Backup server
- 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 - You will also need to create a
/etc/rsyncd.secrets
file with the configured username and password. The file should look like:backupuser:mypassword - Set the file permissions on the configuration files with the following commands:
chmod 644 /etc/rsyncd.conf chmod 600 /etc/rsyncd.secrets
- 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> - Set the file permissions on the LaunchDaemon plist file with the following command:
chmod 644 /Library/LaunchDaemons/rsync.plist
- If you don't want to restart the machine, load the daemon
sudo launchctl load -w /Library/LaunchDaemons/rsync.plist
- Open firewall for TCP port 873 if necessary
- Add the server to list of servers to be backed up as described here
- Test with
runrsync -l
on the backup server