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

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
(Criou página com 'Single Thread <pre> # tar cf - /source_directory | gzip -4 | ssh -p 22 -i /path/private_key user@host "cd /target_target_directory; gzip -c -d |tar xf - " </pre> Multi Thread...')
 
Sem resumo de edição
 
(8 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
=TAR over SSH=
Single Thread
Single Thread
<pre>
<pre>
Linha 6: Linha 7:
<pre>
<pre>
# 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 - "
# 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 - "
</pre>
=RSYNC=
Handling sparse files
<pre>
# rsync -avxS /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress
</pre>
Normal copy with same permissions
<pre>
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --progress
</pre>
With compression, traffic shaping 600K anda delete files different from source on target
<pre>
# rsync -avx /source_directory -e "ssh -i $HOME/.ssh/somekey" user@host:/target_directory --bwlimit=600 --compress  --progress --delete
</pre>
From EXT4 to NTFS changing encoding
<pre>
# sudo rsync -rvx -@=2  /source_directory/ /destination_directory/ --progress --no-owner --no-group  --no-perms  --stats --iconv=ISO-8859-1,UTF-8
</pre>
</pre>

Edição atual tal como às 11h19min de 9 de março de 2023

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

From EXT4 to NTFS changing encoding

# sudo rsync -rvx -@=2  /source_directory/ /destination_directory/ --progress --no-owner --no-group  --no-perms  --stats --iconv=ISO-8859-1,UTF-8