Tarring a filesystem to a remote bundle

Jurjen Bokma

January 2009


Imagine a filesystem mounted read-only from a ramdisk or the like, and a need to transfer all the files in the system to another host, into a single tar bundle. See also Conference under Docker This is how it's done.

tar cvf - /mountpoint|ssh remoteuser@remotehost gzip - \> \~/mountpoint.tgz

[Note]Note

Of course you can also choose to let tar do the zipping if the local machine is faster.