Changes

Jump to navigation Jump to search
168 bytes added ,  16:19, 1 May 2018
Line 232: Line 232:  
====Backup a Linux host through rsync====
 
====Backup a Linux host through rsync====
   −
To configure a Linux host client to be backed up, configure SSH from the backup server as follows in order to exchange certificates and to perform a login without passwords.
+
Pour qu'un client hôte Linux soit sauvegardé, configurer SSH du serveur de sauvegarde comme suit de façon à échanger les certificats afin de permettre un accès sans mots de passe.
   −
At the BackupPC server command line as root:
+
Sur le serveur BackupPC, en ligne de commande en tant que «root» :
    
  su -s /bin/bash backuppc
 
  su -s /bin/bash backuppc
  ssh-keygen -t rsa -b 2048  # use a blank passphrase
+
  ssh-keygen -t rsa -b 2048  # utiliser une phrase de passe vide
 
  exit
 
  exit
   −
Assuming SSH access to the remote host to be backed up is already configured, as root:
+
En supposant que l'accès SSH au serveur distant à sauvegarder est déjà configuré, exécuter en tant que «root» :
 
  su -s /bin/bash backuppc  
 
  su -s /bin/bash backuppc  
  ssh-copy-id -i ~backuppc/.ssh/id_rsa.pub root@your.host.name
+
  ssh-copy-id -i ~backuppc/.ssh/id_rsa.pub root@votre.nom.d_hote
 
  exit
 
  exit
   −
You can test the key exchange:
+
Vous pouvez tester l'échange de clés :
   −
  su -s /bin/bash backuppc  #become backuppc user
+
  su -s /bin/bash backuppc  #devenir l’utilisateur de backuppc
  ssh -l root your.host.name                                                     # add "-p 2222" for port 2222
+
  ssh -l root votre.nom.d_hote                                                     # ajouter "-p 2222" pour le port 2222
  exit                      #from the remote_host
+
  exit                      #sortir du serveur distant
  exit                      #from the backuppc user back to root
+
  exit                      #fermer la session d'utilisateur backuppc pour revenir à «root»
   −
You should be able to log in without a password.
+
Vous devriez être capable de vous connecter sans mot de passe.
   −
Note: There are times when the backuppc user needs a real shell specified in /etc/passwd, for example, when the backuppc user is used to run sudo commands or pre/post scripts.<br />
+
Note : There are times when the backuppc user needs a real shell specified in /etc/passwd, for example, when the backuppc user is used to run sudo commands or pre/post scripts.<br />
    
Now you can go to the admin backuppc panel to set your host<br />
 
Now you can go to the admin backuppc panel to set your host<br />
3,054

edits

Navigation menu