You can use a pipe into ssh. The other machine will get your data on stdin. So you need to tell the remote shell what to do with the data.

Try this:
tar --ignore-failed-read [your selection of files to back up] -czf - | ssh remoteuser@remote.system "cat > destination_file.tar.gz"

The trick is to give the command for the remote shell (stuff in double-quotes at the end of the line above)


On 2/16/2012 11:12 AM, Michael Havens wrote:
I'm using fsarchiver to backup a computer. I don't have enough diskspace for the archive. I can ssh to another computer. I know which directory I want to save it in but I don't know how to write the file directly to it. I tried it with a pipe and I tried it with a greater-than sign. Pray-tell! how is it done?

--
:-)~MIKE~(-:


---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss