Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 12:33:45 -0800
From:      Peter Giessel <pgiessel@mac.com>
To:        Chris Maness <chris@chrismaness.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: AFP Client in FreeBSD
Message-ID:  <53717320816774023408331140292780926381-Webmail@me.com>

next in thread | raw e-mail | index | archive | help
On Wednesday, June 10, 2009, at 09:45AM, "Chris Maness" <chris@chrismaness.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53717320816774023408331140292780926381-Webmail>