Copy Methods: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
(→RSYNC) |
||
Linha 9: | Linha 9: | ||
</pre> | </pre> | ||
=RSYNC= | =RSYNC= | ||
Handling sparse files | |||
<pre> | |||
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory | |||
</pre> | |||
Normal copy with sma permissions | |||
<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 | ||
</pre> | </pre> |
Edição das 07h50min 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
Normal copy with sma permissions
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory