Re:A little SSH file copy magic at the command line
by gglitch on Thursday October 10, 2019 @10:10AM
(#21214673)
It would be super useful to me to see this with a bit more detail, in case you have/know a writeup somewhere!
[ Parent
| on HN ]
Re:A little SSH file copy magic at the command line
by yetihehe on Thursday October 10, 2019 @10:15AM
(#21214722)
I didn't invent it myself, you can see example at [0] or googling 'pg_dump ssh tunnel'.
[0] https://coderwall.com/p/bmv0nw/dump-postgres-databases-throu...
Re:A little SSH file copy magic at the command line
by w0land on Thursday October 10, 2019 @10:21AM
(#21214791)
For copying a directory tree from host1 to host2 preserving user / permissions and compressing on the fly to reduce network usage i use:
# from host1:
cd $DIRECTORY && tar -jcf - . | ssh host2 "cd DESTINATION_DIR && tar jxvf - "