dump and restore a filesystem in one shot

You can dump and restore a filesystem in one shot using the pipe with one commandline:

dump -0 -b 512 -f - / | restore -r -b 512 -f -

This will run a full backup (-0) with a blocksize of 512k. The output file is stdout (-f -) and the filesystem is root (/). The ouput is given via pipe (|) to the restore command, which will restore the filesystem (-r) and read the data with same blocksize (-b 512) from stdin (-f -).
This is pretty useful when copying filesystems from one partition to another. Unfortunately this is currently not working with ext4 filesystems.