Email or username:

Password:

Forgot your password?
Top-level
Darius Kazemi

Apparently this is something that is often used in place of scp or rsync or similar. The basic idea is: use `tar` to compress files on machine 1, pipe to machine 2, untar on machine2.

This article also mentions piping the output of `dd` to `ssh` to create a disk image on a remote machine which seems fully insane in a good way:

maketecheasier.com/ssh-pipes-l

2 comments | Expand all CWs
SlightlyCyberpunk

@darius Yes! Pipes never cease to amaze :) I once attempted to make a script to do system monitoring on remote systems by creating a FIFO named pipe file on the remove system, running commands like vmstat and having them dump to that pipe file (formatted with awk), and cat-ing the whole thing across an SSH link to a local named pipe. Then you could build a tree structure reading and writing those pipe files down to one master node...it worked alright but it was quite insane :D

ed(1) conference

@darius I've used the reverse method to write a disk image to a remote-booted-to-a-rescue-environment

gzip -c disk.img | ssh root@rescue.example.com "gunzip | dd of=/dev/$ROOTDISK/ bs=1M"

(also known as "how I got FreeBSD installed on an OVH VPS")

Go Up