From c284b91585973dbb580f5ac159875e7745036137 Mon Sep 17 00:00:00 2001 From: Rogier Neeleman Date: Fri, 2 Jan 2015 10:52:26 +0100 Subject: [PATCH] Move data by ssh --- howto/move_data_by_ssh_and_tar.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 howto/move_data_by_ssh_and_tar.txt diff --git a/howto/move_data_by_ssh_and_tar.txt b/howto/move_data_by_ssh_and_tar.txt new file mode 100644 index 0000000..21914cd --- /dev/null +++ b/howto/move_data_by_ssh_and_tar.txt @@ -0,0 +1,14 @@ +How to move data by ssh and tar + +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/"