1 2 3 4 5
tar -cpvSf – directory/ | ssh my.other.computer tar -xf – -C /destination/ # or with a tar archive only tar -cpvzSf – directory/ | ssh my.other.computer 'cat > directory.tar.gz'