aaaaa this is an amazing possibility, if you want to transfer files from one host to the other without scp/rsync, just by using ssh. apparently, ssh can take data from standard input, so the pipeline works like this:

tar -cf - env/novation | ssh arnet.am "cd /tmp; tar -xf -"

https://github.com/norayr/home_sweet_home/blob/master/scripts/ssh_sync.sh #openssh #ssh #network #unix

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)


@{Avatar Antranig Vartanian ; antranigv@spyurk.am} 07.04.2017, 15:48:06

Dave: Open the pod bay doors, HAL. HAL: I’m sorry, Dave. I’m afraid I can’t do that. Dave: What’s the problem? HAL: I think you know what the problem is just as well as I do. Dave: sudo open the pod bay doors, HAL. HAL: There you go.

#HAL9000 #SpaceOdyssey #sudo #gnu #linux #unix


#hal_9000

բնօրինակ սփիւռքում(եւ մեկնաբանութիւննե՞ր)