TechDocs/TechnicalProcesses/Backup/BackupNewMachine

To setup backups on a new machine, please do the following:

1. Add the two SSH keys needed for backups to authorized_keys on the client machine as follows:

command="/usr/lib/openssh/sftp-server -R" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRtpDoSD6hU8KuechjplmN9oDZplg01ZorYJol/YefCqONXIHTYY7z30n4wk9ocWwxTxwlaEiKhLGO9Bbu5V8DBV7kQIc1eE6lr5ffsKOTvPmG8ivgke4k2yuT5r1gt3/XP5Q0EWZWSNeEyJ85ID66W/INASZ6Mj6QLOwX2YjAcnDIQYFNG/M8qczUFWgxrwlT8swqbZLPSEua6Zvkb0yr6yenn6ErQQERG5Rh89EbESa1TiG0KHXGVvpFhdbR/wu/fbPA+Y+A9A99obipzI+IKO+T+/RqcnFivG7YLMZaEL+CXwjvRPLtsOizi/fAa8uN/Hn006wjmz0qtlZ6RrK1 root@cleve.fsfeurope.org
command="/root/bin/backup.sh" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+FeCsYXgJJKkn0VRJpXvBSS6YTNVhaMapDTxJyWr1+y8n/X0eo8EeQ6Rwvjcac1JM7jGfQWMym8AaKoPBA9yVzxtnNrmATyt5i5o++THK+R+fkIoeLsN2vPIe0U+XnFVUbdI5Ztn1ykB+xklAt6MN3PiEu2yhNliYQcBl9b1stA+fm6yxN9Bq9C80wCuJPwDELDsLuCAOcLlxPxy41YMY56aU2JCYLyo6JjpNHPXa33IwQVLegG7nsnFkoTFDlIglGwPwX5ZMBqFOAnrZy4s/oPM5fPMM87pJ7M4rnFm+g+cBKkIYrp2Y72UUjdu3Ol0292zRg9kCCQn4gMW39R0d root@cleve

The first key is used to mount the filesystem read-only from cleve while the second allows for running the backup shell script before each backup.

2. Create, if needed, a runnable /root/bin/backup.sh on the client machine which dumps relevant databases and other information to text files or similar.

3. Connect with ssh from cleve to the client machine to add its host key to known_hosts. Be sure to verify the client machine ssh key!

4. Add the machine to bin/backup.sh on cleve

5. Verify in the nightly mail the next day that the machine is actually being backed up.

TechDocs/TechnicalProcesses/Backup/BackupNewMachine (last edited 2018-04-20 09:38:46 by vincent)