3 ms·
It would be super useful to me to see this with a bit more detail, in case you have/know a writeup somewhere!
by gglitch 7y ago
It would be super useful to me to see this with a bit more detail, in case you have/know a writeup somewhere!
- yetihehe 7y agoI 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-through-ssh https://coderwall.com/p/bmv0nw/dump-postgres-databases-throu...
- w0land 7y agoFor 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 - "