Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Apr 2008 23:09:22 -0400
From:      mike@sentex.net
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Remote backups using ssh and dump
Message-ID:  <0uqdv3h5r4kprbmhmeh0cme4apn5tvimm0@4ax.com>
In-Reply-To: <4E73E577666CE823A7212C54@utd65257.utdallas.edu>
References:  <4E73E577666CE823A7212C54@utd65257.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 04 Apr 2008 12:59:27 -0500, in sentex.lists.freebsd.questions
you wrote:

>Has anyone done this?

Hi,
	Yes, we use something like the following



#!/bin/sh


if [ -z $1 ] ; then
        echo ""
        echo "Usage: $0 <backup level>"
        echo "       See 'man dump' for more information."
        echo ""
        exit 255
fi

BACKUP_LEVEL=3D0
BACKUP_LEVEL=3D$1


/sbin/dump -C24 -${BACKUP_LEVEL}anuf - / | /usr/bin/gzip -7 |
/usr/bin/ssh -2 -c 3des backupuser@example.com dd
of=3D/path/to/dump/dump-myfifle-root-l${BACKUP_LEVEL}.gz


	---Mike



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