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 This is how it's done.
tar cvf - /mountpoint|ssh remoteuser@remotehost gzip - \> \~/mountpoint.tgz
![]() | Note |
---|---|
Of course you can also choose to let tar do the zipping if the local machine is faster. |