On Sun, Jul 20, 2014 at 2:06 PM, Robert Carleton <[email protected]> wrote:
> I'm using dump for backups to take advantage of the dump levels. I'd like > to be able to run restore interactively, using the standard in as an input. > Here's what I have in mind: > > # cd /tmp > # ssh [email protected] "cat /home/backup/0-var.dmp" | restore -i -f - > restore > > > When I try it, it hangs on the first command I run, even the "what" > command. "top" reports the wait for restore is ttyin. I'm running OpenBSD > 5.5-stable, patch 8, compiled from source. The host is running on > rootbsd.net's infrastructure, Xen running my host as a HVM I believe. > First, if the remote machine is another openbsd box or has a compatible /etc/rmt command, then you may be able to just use restore -i -f [email protected]:/home/backup/0-var.dmp If that works, it'll probably be the most efficient method. And yes, that will use ssh internally. Otherwise, the problem is probably just that ssh is reading your stdin as well. You can suppress that with its -n option. But do try the above method using rmt first Philip Guenther

