From owner-freebsd-questions@FreeBSD.ORG Wed Jun 10 20:34:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83E4B106564A for ; Wed, 10 Jun 2009 20:34:29 +0000 (UTC) (envelope-from pgiessel@mac.com) Received: from asmtpout013.mac.com (asmtpout013.mac.com [17.148.16.88]) by mx1.freebsd.org (Postfix) with ESMTP id 6CD038FC1B for ; Wed, 10 Jun 2009 20:34:29 +0000 (UTC) (envelope-from pgiessel@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1 Received: from spool002.mac.com ([10.150.69.52]) by asmtp013.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0KL100BK9IFRUT20@asmtp013.mac.com> for freebsd-questions@freebsd.org; Wed, 10 Jun 2009 13:34:09 -0700 (PDT) Received: from webmail041 ([10.13.128.41]) by spool002.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0KL100LKNIGA1090@spool002.mac.com>; Wed, 10 Jun 2009 13:33:48 -0700 (PDT) Date: Wed, 10 Jun 2009 12:33:45 -0800 From: Peter Giessel To: Chris Maness Message-id: <53717320816774023408331140292780926381-Webmail@me.com> Received: from [69.178.5.90] from webmail.me.com with HTTP; Wed, 10 Jun 2009 12:33:45 -0800 X-Originating-IP: 69.178.5.90 Cc: freebsd-questions@freebsd.org Subject: Re: AFP Client in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 20:34:29 -0000 On Wednesday, June 10, 2009, at 09:45AM, "Chris Maness" wrote: >Is there an AFP client for FreeBSD? I have a mac with a gargantuan >hard drive, and I would like to back up my FreeBSD server to it, and >back up my mac to my FreeBSD server. I have seen where FreeBSD can be >an AFP server, but there is little information on the client. Any >suggestions? I regularly backup my FreeBSD boxes using dump and ssh to a very large hard drive on my mac. Here is how I do it: - Turn on SSH access on the mac (I believe in OSX.5 it is called "Remote Login") - Setup PubkeyAuthentication: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/openssh.html (Section 14.11.6 - works the same on Mac and FreeBSD) - Wrote a script similar to this: *************************************************** #!/bin/sh /sbin/dump -1uaL -f - / | gzip -2 | ssh user@192.168.0.xxx dd of="/Volumes/Remote\ Backup/root.gz" /sbin/dump -1uaL -f - /tmp | gzip -2 | ssh user@192.168.0.xxx dd of="/Volumes/Remote\ Backup/tmp.gz" /sbin/dump -1uaL -f - /var | gzip -2 | ssh user@192.168.0.xxx dd of="/Volumes/Remote\ Backup/var.gz" /sbin/dump -1uaL -f - /usr | gzip -2 | ssh user@192.168.0.xxx dd of="/Volumes/Remote\ Backup/usr.gz" echo "Dumps Done" *************************************************** (of course adjust the user from "user" to your actual ssh username, adjust "Remote\ Backup" to your actual volume name, and fix the IP address to be the mac's actual IP address, and adjust the dump level as desired.) - Added this to crontab: *************************************************** # Run the backup script 5 4 * * * root /root/backup-script *************************************************** Runs every day backing up my unix partitions to the filenames given (root.gz, etc) on the volume on my Mac.