rsync: update page (#12879)

* rsync: update page

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
K.B.Dharun Krishna 2024-06-03 10:44:03 +05:30 committed by GitHub
parent 2c084c6137
commit b0712f5bd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 48 additions and 48 deletions

View File

@ -10,24 +10,24 @@
- Utilise le mode archive (copier récursivement les répertoires, copier les liens symboliques sans résolution et conserver les autorisations, la propriété et les délais de modification) :
`rsync --archive {{chemin/vers/origine}} {{chemin/vers/destination}}`
`rsync {{-a|--archive}} {{chemin/vers/origine}} {{chemin/vers/destination}}`
- Transférer le contenu d'un dossier :
`rsync --recursive {{chemin/vers/origine}} {{chemin/vers/destination}}`
`rsync {{-r|--recursive}} {{chemin/vers/origine}} {{chemin/vers/destination}}`
- Transférer le contenu d'un dossier (mais pas le dossier lui-même) :
`rsync --recursive {{chemin/vers/origine}}/ {{chemin/vers/destination}}`
`rsync {{-r|--recursive}} {{chemin/vers/origine}}/ {{chemin/vers/destination}}`
- Utiliser le mode archive, résolvant les liens symboliques et ignorant les fichiers déjà transférés sauf si plus récents :
`rsync --archive --update --copy-links {{chemin/vers/origine}} {{chemin/vers/destination}}`
`rsync {{-auL|--archive --update --copy-links}} {{chemin/vers/origine}} {{chemin/vers/destination}}`
- Transférer un fichier vers un hôte distant exécutant `rsyncd` et supprimez les fichiers sur la destination qui n'existent pas sur l'hôte distant :
`rsync --recursive --delete rsync://{{hote_distant}}:{{chemin/vers/origine}} {{chemin/vers/destination}}`
`rsync {{-r|--recursive}} --delete rsync://{{hote_distant}}:{{chemin/vers/origine}} {{chemin/vers/destination}}`
- Transférer un fichier par SSH et afficher l'avancement global du transfert :
`rsync -rsh 'ssh -p {{port}}' --info=progress2 {{hote_distant}}:{{chemin/vers/origine}} {{chemin/vers/destination}}`
`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{hote_distant}}:{{chemin/vers/origine}} {{chemin/vers/destination}}`

View File

@ -14,24 +14,24 @@
- Transfer file dalam mode [a]rsip (untuk menyimpan atribut-atribut) dan terkompres (_[z]ipped_) secara _[v]erbose_ dan progresnya dapat dibaca orang (_[h]uman-readable [P]rogress_):
`rsync -azvhP {{lokasi/ke/file_lokal}} {{remote_host}}:{{lokasi/ke/remote_directory}}`
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{lokasi/ke/file_lokal}} {{remote_host}}:{{lokasi/ke/remote_directory}}`
- Transfer direktori dan semua isiny dari remote ke lokal:
`rsync -r {{remote_host}}:{{lokasi/ke/remote_directory}} {{lokasi/ke/direktori_lokal}}`
`rsync {{-r|--recursive}} {{remote_host}}:{{lokasi/ke/remote_directory}} {{lokasi/ke/direktori_lokal}}`
- Transfer isi direktori (namun bukan direktori itu sendiri) dari remote ke lokal:
`rsync -r {{remote_host}}:{{lokasi/ke/remote_directory}}/ {{lokasi/ke/direktori_lokal}}`
`rsync {{-r|--recursive}} {{remote_host}}:{{lokasi/ke/remote_directory}}/ {{lokasi/ke/direktori_lokal}}`
- Transfer direktori secara [r]ecursif, dalam [a]rsip (untuk menyimpan atribut-atribut), menyelesaikan _soft[l]inks_ yang terkandung di sana, dan mengabaikan file-file yang sudah ditransfer kecuali jika file itu lebih baru (_[u]nless newer_):
`rsync -rauL {{remote_host}}:{{lokasi/ke/remote_file}} {{lokasi/ke/direktori_lokal}}`
`rsync {{-auL|--archive --update --copy-links}} {{remote_host}}:{{lokasi/ke/remote_file}} {{lokasi/ke/direktori_lokal}}`
- Transfer file melalui SSH dan hapus file-file lokal yang tidak ada di _remote host_:
`rsync -e ssh --delete {{remote_host}}:{{lokasi/ke/remote_file}} {{lokasi/ke/file_lokal}}`
`rsync {{-e|--rsh}} ssh --delete {{remote_host}}:{{lokasi/ke/remote_file}} {{lokasi/ke/file_lokal}}`
- Transfer file melalui SSH dengan menggunakan port yang yang berbeda dari bawaan dan tampilkan progres global:
`rsync -e 'ssh -p {{port}}' --info=progress2 {{remote_host}}:{{lokasi/ke/remote_file}} {{lokasi/ke/file_lokal}}`
`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{remote_host}}:{{lokasi/ke/remote_file}} {{lokasi/ke/file_lokal}}`

View File

@ -10,28 +10,28 @@
- 아카이브 모드 (디렉토리를 반복적으로 복사하고, 권한, 소유권, 수정 시간을 확인 및 보존하지 않고 심볼릭 링크를 복사) 사용:
`rsync --archive {{경로/대상/소스}} {{경로/대상/목적지}}`
`rsync {{-a|--archive}} {{경로/대상/소스}} {{경로/대상/목적지}}`
- 데이터가 대상으로 전송될 때 압축하고, 사람이 읽을 수 있는 자세한 진행 상황을 표시하고, 중단된 경우 부분적으로 전송된 파일 유지:
`rsync --compress --verbose --human-readable --partial --progress {{경로/대상/소스}} {{경로/대상/목적지}}`
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{경로/대상/소스}} {{경로/대상/목적지}}`
- 반복적으로 폴더 복사:
`rsync --recursive {{경로/대상/소스}} {{경로/대상/목적지}}`
`rsync {{-r|--recursive}} {{경로/대상/소스}} {{경로/대상/목적지}}`
- 디렉터리 내용을 전송하지만, 디렉터리 자체는 전송하지 않음:
`rsync --recursive {{경로/대상/소스}}/ {{경로/대상/목적지}}`
`rsync {{-r|--recursive}} {{경로/대상/소스}}/ {{경로/대상/목적지}}`
- 디렉토리를 반복적으로 복사하고, 아카이브 모드를 사용하고, 심볼릭 링크를 확인하고, 대상에 있는 최신 파일을 건너뜀:
`rsync --archive --update --copy-links {{경로/대상/소스}} {{경로/대상/목적지}}`
`rsync {{-auL|--archive --update --copy-links}} {{경로/대상/소스}} {{경로/대상/목적지}}`
- `rsyncd`를 실행하는 원격 호스트로 폴더를 전송하고 소스에 존재하지 않는 대상의 파일으 삭제:
`rsync --recursive --delete rsync://{{호스트}}:{{경로/대상/소스}} {{경로/대상/목적지}}`
`rsync {{-r|--recursive}} --delete rsync://{{호스트}}:{{경로/대상/소스}} {{경로/대상/목적지}}`
- 기본값(22)이 아닌 다른 포트를 사용하여 SSH를 통해 파일을 전송하고 전체적인 진행 상황을 표시:
`rsync --rsh 'ssh -p {{port}}' --info=progress2 {{호스트}}:{{경로/대상/소스}} {{경로/대상/목적지}}`
`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{호스트}}:{{경로/대상/소스}} {{경로/대상/목적지}}`

View File

@ -10,28 +10,28 @@
- Użyj trybu archiwum (rekursywnie kopiuj katalogi, kopiuj dowiązania symboliczne bez rozwiązywania i zachowaj uprawnienia, własność i czasy modyfikacji):
`rsync --archive {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-a|--archive}} {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
- Kompresuj dane podczas gdy są wysyłane do miejsca docelowego, wyświetlaj szczegółowy i czytelny dla człowieka postęp i zachowaj częściowo przesłane pliki w przypadku przerwania:
`rsync --compress --verbose --human-readable --partial --progress {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
- Rekursywnie kopiuj katalogi:
`rsync --recursive {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-r|--recursive}} {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
- Prześlij zawartość katalogu, ale nie sam katalog:
`rsync --recursive {{ścieżka/do/źródła}}/ {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-r|--recursive}} {{ścieżka/do/źródła}}/ {{ścieżka/do/miejsca_docelowego}}`
- Rekursywnie kopiuj katalogi, użyj trybu archiwum, rozwiąż dowiązania symboliczne i pomiń pliki, które są nowsze w miejscu docelowym:
`rsync --archive --update --copy-links {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-auL|--archive --update --copy-links}} {{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
- Prześlij katalog ze zdalnego hosta, na którym działa `rsyncd` i usuń pliki w miejscu docelowym, które nie istnieją w źródle:
`rsync --recursive --delete rsync://{{host}}:{{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
- Prześlij plik poprzez SSH używając innego portu niż domyślny (22) i wyświetlaj globalny postęp:
`rsync --rsh 'ssh -p {{port}}' --info=progress2 {{host}}:{{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`
`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{host}}:{{ścieżka/do/źródła}} {{ścieżka/do/miejsca_docelowego}}`

View File

@ -10,28 +10,28 @@
- Usa o modo de arquivo (copia recursivamente diretórios, copia links simbólicos sem resolver e preserva permissões, propriedade e tempos de modificação):
`rsync --archive {{caminho/para/origem}} {{caminho/para/destino}}`
`rsync {{-a|--archive}} {{caminho/para/origem}} {{caminho/para/destino}}`
- Comprime os dados à medida que são enviados ao destino, exibe progresso detalhado e legível, e mantém arquivos parcialmente transferidos se forem interrompidos:
`rsync --compress --verbose --human-readable --partial --progress {{caminho/para/origem}} {{caminho/para/destino}}`
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{caminho/para/origem}} {{caminho/para/destino}}`
- Copia recursivamente diretórios:
`rsync --recursive {{caminho/para/origem}} {{caminho/para/destino}}`
`rsync {{-r|--recursive}} {{caminho/para/origem}} {{caminho/para/destino}}`
- Transfere os conteúdos do diretório, mas não o diretório em si:
`rsync --recursive {{caminho/para/origem}}/ {{caminho/para/destino}}`
`rsync {{-r|--recursive}} {{caminho/para/origem}}/ {{caminho/para/destino}}`
- Copia diretórios, usa o modo de arquivamento, resolve links simbólicos e ignora arquivos que são mais recentes no destino:
`rsync --archive --update --copy-links {{caminho/para/origem}} {{caminho/para/destino}}`
`rsync {{-auL|--archive --update --copy-links}} {{caminho/para/origem}} {{caminho/para/destino}}`
- Transfere um diretório para um host remoto executando o `rsyncd` and exclui arquivos no destino que não existem na origem:
`rsync --recursive --delete rsync://{{host}}:{{caminho/para/origem}} {{caminho/para/destino}}`
`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{caminho/para/origem}} {{caminho/para/destino}}`
- Transfere um arquivo por SSH usando uma porta diferente da padrão (22) e mostra o progresso global:
`rsync --rsh 'ssh -p {{porta}}' --info=progress2 {{host}}:{{caminho/para/origem}} {{caminho/para/destino}}`
`rsync {{-e|--rsh}} 'ssh -p {{porta}}' --info=progress2 {{host}}:{{caminho/para/origem}} {{caminho/para/destino}}`

View File

@ -10,28 +10,28 @@
- 使用归档模式递归拷贝文件,并保留所有属性,不解析软链接:
`rsync --archive {{路径/到/来源}} {{路径/到/目标}}`
`rsync {{-a|--archive}} {{路径/到/来源}} {{路径/到/目标}}`
- 将文件以归档模式并保留几乎所有属性进行传输,并以人类可读方式输出详细信息和进度条,中断时保留部分信息:
`rsync --compress --verbose --human-readable --partial --progress {{路径/到/来源}} {{路径/到/目标}}`
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{路径/到/来源}} {{路径/到/目标}}`
- 以递归模式传输文件:
`rsync --recursive {{路径/到/来源}} {{路径/到/目标}}`
`rsync {{-r|--recursive}} {{路径/到/来源}} {{路径/到/目标}}`
- 将目录下的所有内容(不包含该目录),以递归方式传输:
`rsync --recursive {{路径/到/来源}}/ {{路径/到/目标}}`
`rsync {{-r|--recursive}} {{路径/到/来源}}/ {{路径/到/目标}}`
- 归档方式传输目录,保留几乎所有属性,解析软连接,并忽略已传输的文件:
`rsync --archive --update --copy-links {{路径/到/来源}} {{路径/到/目标}}`
`rsync {{-auL|--archive --update --copy-links}} {{路径/到/来源}} {{路径/到/目标}}`
- 传输目录到运行 `rsyncd` 的远端,并删除目标目录中源目录中不存在的文件:
`rsync --recursive --delete rsync://{{host}}:{{路径/到/来源}} {{路径/到/目标}}`
`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{路径/到/来源}} {{路径/到/目标}}`
- 指定本地和远程之间通信方式,使用指定端口,并显示进度条:
`rsync --rsh 'ssh -p {{端口}}' --info=progress2 {{host}}:{{路径/到/来源}} {{路径/到/目标}}`
`rsync {{-e|--rsh}} 'ssh -p {{端口}}' --info=progress2 {{host}}:{{路径/到/来源}} {{路径/到/目标}}`

View File

@ -10,28 +10,28 @@
- Use archive mode (recursively copy directories, copy symlinks without resolving, and preserve permissions, ownership and modification times):
`rsync --archive {{path/to/source}} {{path/to/destination}}`
`rsync {{-a|--archive}} {{path/to/source}} {{path/to/destination}}`
- Compress the data as it is sent to the destination, display verbose and human-readable progress, and keep partially transferred files if interrupted:
`rsync --compress --verbose --human-readable --partial --progress {{path/to/source}} {{path/to/destination}}`
`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{path/to/source}} {{path/to/destination}}`
- Recursively copy directories:
`rsync --recursive {{path/to/source}} {{path/to/destination}}`
`rsync {{-r|--recursive}} {{path/to/source}} {{path/to/destination}}`
- Transfer directory contents, but not the directory itself:
`rsync --recursive {{path/to/source}}/ {{path/to/destination}}`
`rsync {{-r|--recursive}} {{path/to/source}}/ {{path/to/destination}}`
- Use archive mode, resolve symlinks and skip files that are newer on the destination:
- Use archive mode, resolve symlinks, and skip files that are newer on the destination:
`rsync --archive --update --copy-links {{path/to/source}} {{path/to/destination}}`
`rsync {{-auL|--archive --update --copy-links}} {{path/to/source}} {{path/to/destination}}`
- Transfer a directory from a remote host running `rsyncd` and delete files on the destination that do not exist on the source:
`rsync --recursive --delete rsync://{{host}}:{{path/to/source}} {{path/to/destination}}`
`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{path/to/source}} {{path/to/destination}}`
- Transfer a file over SSH using a different port than the default (22) and show global progress:
`rsync --rsh 'ssh -p {{port}}' --info=progress2 {{host}}:{{path/to/source}} {{path/to/destination}}`
`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{host}}:{{path/to/source}} {{path/to/destination}}`