backup in rsync + ssh
Since a review of data backup procedures, note again.
To back up this time, the data of the web server. Backup destination of the box Debian Gen.
The assumption is that just finished both ssh and rsync,
KuroBox side,
sshd_config
# Don't read the user's ~ /. Rhosts and ~ /. Shosts files
# IgnoreRhosts yes
IgnoreRhosts no
# For this to work you will also need host keys in / etc / ssh_known_hosts
# RhostsRSAAuthentication no
RhostsRSAAuthentication yes
# Similar for protocol version 2
# HostbasedAuthentication no
HostbasedAuthentication yes
# Uncomment if you don't trust ~ / .ssh / known_hosts for RhostsRSAAuthentication
# IgnoreUserKnownHosts yes
Where there is an item that part of the same name, one side has been rewritten this time commented out.
/ Etc / init.d / ssh restart
The / root / .shosts
192.168.1.1 root
Such as user name and description, to perform backup and backup of the original web server.
On the web server, create a public key
ssh-keygen-t rsa
Passphrase that you created in the sky.
/ Addition of KuroBox / root / .ssh and / known_hosts / root / .ssh to / authorized_keys root / .ssh to / id_rsa.pub.
Try to make sure the web server from the backup source KuroBox ssh, it does not ask you for a password.
Rsync command to be executed,
backup destination directory: The name of the source directory KuroBox rsync-az-delete-e ssh backup
registered with the cron in the crontab-e.
End of it.










