Copy Methods: mudanças entre as edições

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
Linha 11: Linha 11:
Handling sparse files
Handling sparse files
<pre>
<pre>
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress
</pre>
</pre>
Normal copy with sma permissions
Normal copy with sma permissions
<pre>
<pre>
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress
</pre>
With compression and traffic shaping
<pre>
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --compress  --progress
</pre>
</pre>

Edição das 07h53min de 1 de março de 2019

TAR over SSH

Single Thread

# tar cf - /source_directory | gzip -4 | ssh -p 22 -i /path/private_key user@host "cd /target_target_directory; gzip -c -d |tar xf - "

Multi Thread

# tar cf - /source_directory | pigz -p 8 -4 | ssh -p 22 -i /path/private_key user@host "cd /target_target_directory; gzip -c -d |tar xf - "

RSYNC

Handling sparse files

# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress

Normal copy with sma permissions

# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress

With compression and traffic shaping

# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --compress   --progress