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

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
Linha 17: Linha 17:
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress
</pre>
</pre>
With compression and traffic shaping
With compression, traffic shaping 600K anda delete files different from source on target
<pre>
<pre>
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --compress  --progress
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --bwlimit=600 --compress  --progress --delete
</pre>
</pre>

Edição das 08h04min 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, traffic shaping 600K anda delete files different from source on target

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