Remote backups using ssh and dump
mike at sentex.net
mike at sentex.net
Sat Apr 5 03:09:10 UTC 2008
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=0
BACKUP_LEVEL=$1
/sbin/dump -C24 -${BACKUP_LEVEL}anuf - / | /usr/bin/gzip -7 |
/usr/bin/ssh -2 -c 3des backupuser at example.com dd
of=/path/to/dump/dump-myfifle-root-l${BACKUP_LEVEL}.gz
---Mike
More information about the freebsd-questions
mailing list