This is an old revision of the document!
“dump” a directory structure and compress the data while streaming it via ssh to a remote server.
cd /parent/path/ dump -af- data_directory | gzip -1 - | ssh user@hostname dd of=image.gz
“restore” a directory structure while using gunzip to decompress the data stream via ssh from a remote server.
cd /parent/path/ ssh user@hostname dd if=image.gz | gunzip -1 - | restore data_directory