FreeBSD Backup

Alex Zbyslaw xfb52 at dial.pipex.com
Tue Dec 12 09:16:42 PST 2006


Peter A. Giessel wrote:

>On 2006/12/12 6:05, probsd org seems to have typed:
>
>>  dump -L -0f - / | ssh -C login at other-freebsd-server "cat > /usr/home/login/root.dump
>>
>
>The handbook also suggests something to the effect of:
>/sbin/dump -0uaL -f - / | gzip -2 | ssh login at other-freebsd-server dd
>of=/www/dumpdir/dump-root.gz
>
If you want to offload the gzip to the other server (if it's faster, for 
example) then

/sbin/dump -0uaL -f - / | ssh login at other-freebsd-server "gzip -9 > /usr/home/login/root.dump"

would also fly.  Obviously gzip compression can be tweaked as you see fit, but personally I've never found any reason to use anything but 9 :-)

I did tests with the subtly different cat and dd methods of naming the remote file and found no discernible timing difference.

I find it handy to encode the dump level (e.g. .0 .1) in the remote name.

--Alex








More information about the freebsd-questions mailing list