[macosx-unix] amanda backup

Isaac Levy ike at lesmuug.org
Wed Mar 15 17:18:11 EST 2006


Hi Jan,

I'm a bit confused about what your asking, as I've forgotten a lot of  
the original post.

Are you working purely with OSX machines here, or is there some  
NetBSD server you are backing up to?

On Mar 15, 2006, at 4:38 PM, Jan Schaumann wrote:

> 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],

On OSX or on some other platform?

> and set the backup server to use
> tar(1) on this host instead of dump.  So far so good.

Great-

>
> 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.

Is that script OK?  Are you using it along side the launchd stuff you  
mention below, or separately?

>
> 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).

"Getting Started with launchd"
http://developer.apple.com/macosx/launchd.html

Man page for launchd(8)
http://developer.apple.com/documentation/Darwin/Reference/ManPages/ 
man8/launchd.8.html

Man page for launchd.plist(5)
http://developer.apple.com/documentation/Darwin/Reference/ManPages/ 
man5/launchd.plist.5.html#//apple_ref/doc/man/5/launchd.plist

--
To my knowledge, launchd is going to stay for the long-haul, and also  
in FreeBSD world, a number of core people are looking to make launchd  
the new starter service on FreeBSD (I think we'll see when FreeBSD 7  
gets closer to REL, I understand some folks don't like the XML  
involved and want to stick to the ol' reliable rc subsystem.)

With all that stated, it seems this is about as close to  
standardizing methodology as money is buying.

> 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

I really think it's something in the start script you provided below-  
but since I'm not using amanda, and don't know anybody on list who  
is, I don't know what to tell you about where it's borking.

Perhaps it's something as simple as a permissions issue?  Or or  
perhasp some load-order issue?

I'm comparing your file to something I know is working on a machine  
here:
/System/Library/LaunchDaemons/ssh.plist
to see if there's anything that sticks out to me- but they're too  
different, so I'm still stumped.

--
So I guess I didn't really help any with this thread, except to go  
over some of the obvious stuff...

Rocket-
.ike



>
>
> [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>
>
> -- 


More information about the macosx-unix mailing list