Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 16:35:38 +0000
From:      "John" <lists@reiteration.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: remote dump via ssh
Message-ID:  <20050228162815.M55988@reiteration.net>
In-Reply-To: <20050228153507.M87202@reiteration.net>
References:  <20050228153507.M87202@reiteration.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Feb 2005 15:41:51 +0000, John wrote
> Hi folks
> 
> I want to level 0 dump a remote partition onto a large local disk. 
> There's not enough space on the remote machine to dump to a file 
> then sftp over. It needs to dump via ssh.
> 
> any ideas? lokking for an elegant one-line solution
> 
> thanks!

In the time-honoured tradition of replying to onself after RTFM I do it like this:

bash-2.05b# /sbin/dump -0uan -f - /usr/local | gzip -2 | ssh -c blowfish \ 
mylogin@wherei.wantto.dump.to dd \
of=/backup/dumps/level0/28022005/dump-usr.local.l0.gz  

/backup is an nfs-mounted external HD

I wonder if it would pipe to gpg -c rather than gzip.

--
lists@reiteration.net



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