Mac: Rsync Backup

From ReceptiveIT
Jump to: navigation, search

This is a quick and dirty howto to create a functioning rsync daemon on Mac OSX. It will be refined at a later date

Configure Rsync

Create an /etc/rsyncd.conf

secrets file = /etc/rsyncd.secrets
read only = no
list = yes 
uid = root
gid = wheel
timeout = 300
strict modes = false

auth users = backup
path = /Volumes/External/BACKUP

Create an /etc/rsyncd.sercrets


Change the ownership of the file to not be world readable

> sudo chmod 640 /etc/rsync.secrets

Create the backup folder on your external hard drive

> sudo mkdir /Volumes/External/BACKUP

Create a /System/Library/LaunchDaemons/rsync.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Start the service

>sudo launchctl load /System/Library/LaunchDaemons/rsync.plist