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:

committed by
GitHub

parent
2c084c6137
commit
b0712f5bd8
@@ -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}}`
|
||||
|
Reference in New Issue
Block a user