Date: Fri, 13 Dec 2002 09:11:22 -0800 From: "Marcus L. Reid" <marcus@blazingdot.com> To: Simon <simon@optinet.com> Cc: "freebsd-isp@FreeBSD.ORG" <freebsd-isp@FreeBSD.ORG> Subject: Re: network backup Message-ID: <20021213171122.GA99250@blazingdot.com> References: <20021213142728.GA92171@blazingdot.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 13, 2002 at 11:45:31AM -0500, Simon wrote: > > They don't change a whole lot, but they do change and new ones are > uploaded. What I'm trying to do is build massive network backup server, > backing up 6+ servers simultaneously. Each server has about 50-100gb > worth of data to be backed up daily. I did look at dump, looks great, the > only problem is that it can't backup individual directories, rather whole > filesystems, if I didn't misread something. Is there some reason that you don't want to back up all of your data? You can use tar to similar effect, but dump/restore works really well when it comes to making full backups of your system. If you use something else to back up your text files, I still recommend using dump for the rest. You are backing up the rest, aren't you? ;) A system that I've used in the past works as follows. On each machine to be backed up: The operator user (the one with read access to the /dev disk devices, can vary with Linux, etc.) on each server is given a home directory and a valid shell (just * for the password field in your passwd file though.) Place the public key of the user on the backup machine into the .ssh/authorized_keys file of the operator user. On the backup machine: Run dump remotely on the server to back up over ssh. The command looks like: ssh yourserver dump -$DUMPLEVEL -u -a -h 0 -f - /dev/$DEVICE | \ gzip > $ARCHIVES/$MACHINE-$DEVICE-$DATE-$DUMPLEVEL.dump.gz The dump output goes out stdout, through ssh, through gzip, and neatly into a file on your backup server. All diagnostic messages go out stderr and are easily mailed to you separately. The backup machine is the one that does the compression here, but that's changed by adding a \ before the |. If you've got a tape library things will look a little different, but you get the idea. > > -Simon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021213171122.GA99250>