« Commandes BASH » : différence entre les versions
| Ligne 251 : | Ligne 251 : | ||
== synchronisation de fichiers == | == synchronisation de fichiers == | ||
< | <syntaxhighlight lang="bash" line copy> | ||
rsync -avz -e ssh /users/personne/.../ root@168.192.1.23:/home/../ | rsync -avz -e ssh /users/personne/.../ root@168.192.1.23:/home/../ | ||
sync -avz -e ssh root@168.192.1.23:/home/../ /users/personne/.../ | sync -avz -e ssh root@168.192.1.23:/home/../ /users/personne/.../ | ||
| Ligne 263 : | Ligne 263 : | ||
#exclure répertoire | #exclure répertoire | ||
--exclude='/config/' | --exclude='/config/' | ||
</ | </syntaxhighlight> | ||
== Répertoire == | == Répertoire == | ||