Rogier Neeleman
10 years ago
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
<b>How to move data by ssh and tar</b> |
||||||
|
|
||||||
|
Sometimes you have a lot of files to transport and you don't want or can't make |
||||||
|
archive files. So the solution could be to transport our files by first make |
||||||
|
a tar archive of it and than scp it to the other site. |
||||||
|
|
||||||
|
The first one is from the destination server to ssh to the source server |
||||||
|
|
||||||
|
ssh user@server "tar czpf - /data" | tar xzpf - -C /new/data |
||||||
|
|
||||||
|
The second example is from the source server to the destination. This example |
||||||
|
is a little bit more like the dataflow. |
||||||
|
|
||||||
|
tar cpf - /data | ssh user@server "tar xpf - -C /new/data/" |
Loading…
Reference in new issue