[macosx-unix] amanda backup

Jan Schaumann jschauma at netmeister.org
Wed Mar 15 16:38:09 EST 2006


Jan Schaumann <jschauma at netmeister.org> wrote:
 
> So far I've gotten to ``install amanda on OS X, add host/disk to
> config''.  The ``done'' part is what usually proves to be the tricky
> one.

Still not quite there, but at least I have a working backup system.
I've installed amanda from pkgsrc [1], and set the backup server to use
tar(1) on this host instead of dump.  So far so good.

I started amandad from xinetd(8), and did a backup.  So far so good.

I had to reboot the machine, and amanda no longer listens.  I don't know
what exactly the magic is that Mac OS X wants me to perform, but
apparently xinetd(8) is no longer starting the service which I added to
/etc/xinetd.d/amanda.

If I log in and kill -HUP xinetd, then it will work.

Alright, so I think that I go and find out what the way is that Apple
wants me to do these things.  I hear and read about launchd(8).  I
create a amanda.plist [2] for launchd and place it into
/Library/LaunchDaemons/.  I 'launchctl load
/Library/LaunchDaemons/amanda.plist'.  I see it's listed via 'launchctl
list'.  I see it's listening via netstat(1).  I think I'm golden.

I reboot, and launchd did not start amanda.  'launchctl list' does show
it, though.  If I 'launchctl unload' it and then 'launchctl load' it
again, everything's working.

So... how do I get it to start at boot time?  Anybody?

-Jan


[1] http://www.pkgsrc.org

[2] Below:

<?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>Label</key>
	<string>org.amanda.amanda</string>
	<key>OnDemand</key>
	<true/>
	<key>ProgramArguments</key>
	<array>
		<string>/Volumes/pkgsrc/pkg/libexec/amandad</string>
	</array>
	<key>ServiceDescription</key>
	<string>Amanda Backup Daemon</string>
	<key>Sockets</key>
	<dict>
		<key>Listeners</key>
		<dict>
			<key>SockNodeName</key>
			<string>192.168.0.8</string>
			<key>SockServiceName</key>
			<string>amanda</string>
			<key>SockType</key>
			<string>dgram</string>
		</dict>
	</dict>
	<key>UserName</key>
	<string>backup</string>
	<key>GroupName</key>
	<string>operator</string>
	<key>InitGroups</key>
	<true/>
	<key>inetdCompatibility</key>
	<dict>
		<key>Wait</key>
		<true/>
	</dict>
</dict>
</plist>

-- 
"When it's fall in New York, the air smells as if someone's been frying
goats in it, and if you are keen to breathe the best plan is to open a
window and stick your head in a building."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://berdom.net/pipermail/macosx-unix/attachments/20060315/457534a5/attachment.bin


More information about the macosx-unix mailing list