Copy Methods: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
(→RSYNC) |
||
Linha 13: | Linha 13: | ||
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress | # rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress | ||
</pre> | </pre> | ||
Normal copy with | Normal copy with same permissions | ||
<pre> | <pre> | ||
# 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 | ||
Linha 21: | Linha 21: | ||
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --bwlimit=600 --compress --progress --delete | # rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --bwlimit=600 --compress --progress --delete | ||
</pre> | </pre> | ||
=HTTP= | =HTTP= | ||
Start a HTTP server with python then download everything with wget. | Start a HTTP server with python then download everything with wget. |
Edição das 13h40min de 16 de abril de 2020
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 same 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
HTTP
Start a HTTP server with python then download everything with wget.