Changes

From SME Server
Jump to navigationJump to search
1,158 bytes added ,  20:52, 24 May 2014
Line 204: Line 204:     
=== Operation ===
 
=== Operation ===
 +
====Backup a smeserver====
 
To configure a SME Server client to be backed up using a configuration based on the provided smeserver-template, configure SSH from the backup server as follows:
 
To configure a SME Server client to be backed up using a configuration based on the provided smeserver-template, configure SSH from the backup server as follows:
   Line 212: Line 213:  
  "cat >> /root/.ssh/authorized_keys2"
 
  "cat >> /root/.ssh/authorized_keys2"
 
  (confirm the host key)
 
  (confirm the host key)
 +
 +
====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.
 +
 +
At the BackupPC server command line as root:
 +
 +
su -s /bin/bash backuppc
 +
ssh-keygen -t rsa -b 2048  # use a blank passphrase
 +
exit
 +
 +
Assuming SSH access to the remote host to be backed up is already configured, as root:
 +
su -s /bin/bash backuppc
 +
ssh-copy-id -i ~backuppc/.ssh/id_rsa.pub root@your.host.name
 +
exit
 +
 +
You can test the key exchange:
 +
 +
su -s /bin/bash backuppc  #become backuppc user
 +
ssh -l root your.host.name                                                    # add "-p 2222" for port 2222
 +
exit                      #from the remote_host
 +
exit                      #from the backuppc user back to root
 +
 +
You should be able to log in without a password.
 +
 +
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
    
=== Uninstall ===
 
=== Uninstall ===

Navigation menu