linux:synchroniser_un_compte_avec_rsync
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:synchroniser_un_compte_avec_rsync [2020/04/11 02:34] – created Philippe Robert | linux:synchroniser_un_compte_avec_rsync [2024/03/26 23:21] (current) – Philippe Robert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Synchroniser un compte avec rsync ====== | ====== Synchroniser un compte avec rsync ====== | ||
| + | Synchroniser le contenu du répertoire / | ||
| - | username: le nom d' | ||
| - | remote_host: | ||
| + | // | ||
| + | |||
| + | // | ||
| ===== Commande à partir du serveur SOURCE ===== | ===== Commande à partir du serveur SOURCE ===== | ||
| - | ** | + | ====Un seul utilisateur==== |
| - | Un seul compte:** | + | |
| - | < | + | < |
| - | rsync -azP / | + | rsync -azP / |
| </ | </ | ||
| - | **Tous les comptes:** | + | username est soit le nom de l' |
| - | < | + | |
| - | rsync -azP /home username@remote_host:/ | + | ==== Tous les utilisateur ==== |
| + | |||
| + | < | ||
| + | rsync -azP /home username@hostname_ou_ip_du_serveur_distant:/ | ||
| </ | </ | ||
| + | |||
| + | Pour le transfert de tous les utilisateurs, | ||
| + | |||
| + | ==== Forcer rsync a utiliser sudo ==== | ||
| + | |||
| + | <code bash> | ||
| + | rsync -azP /home username@hostname_ou_ip_du_serveur_distant:/ | ||
| + | </ | ||
| + | |||
| + | Pour le transfert de tous les utilisateurs, | ||
linux/synchroniser_un_compte_avec_rsync.1586572484.txt.gz · Last modified: 2020/04/11 02:34 by Philippe Robert
