Difference between revisions of "CentOS 7.x create lightsail rsnapshot instance"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_rsnapshot|rsnapshot</yambe:breadcrumb> <yambe:breadcrumb self="create lightsail rsnapshot instance">Cen...") |
m |
||
Line 10: | Line 10: | ||
# ssh -i <private-key> centos@<instance-public-ip> | # ssh -i <private-key> centos@<instance-public-ip> | ||
# sudo su - | # sudo su - | ||
# Disable SELinux | |||
# yum -y install vim | # yum -y install vim | ||
# vim ~/.ssh/authorized_keys | # vim ~/.ssh/authorized_keys |
Revision as of 11:40, 6 March 2019
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_rsnapshot|rsnapshot</yambe:breadcrumb> <yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</yambe:breadcrumb>
CentOS 7.x create lightsail rsnapshot instance
To create CentOS 7.x rsnapshot lightsail instance use following steps:
- Create appropriate lightsail instance
- Create DNS entry for FQDN mapping to public IP
- Download corresponding regions private key
- chmod 400 <private-key>
- ssh -i <private-key> centos@<instance-public-ip>
- sudo su -
- Disable SELinux
- yum -y install vim
- vim ~/.ssh/authorized_keys
- Add own key, Allow <private-key> direct root aaccess. (First line 155x)
- Set hostname
- hostname <desired-fqdn>
- vim /etc/hostname
- Exit
- ssh directly as root with self public key
- yum -y install epel-release
- yum -y install wget
- yum -y rsnapshot
- Create appropriate swap space using CentOS 7.x adding swap space using file
- Setup fail2ban using CentOS 7.x fail2ban including firewalld using CentOS 7.x Basic firewalld configuration
- Configure system to store history date time using Storing date / time along with commands in history
- exit and ssh again for history settings to take effect
- mkdir -p /mnt/large_files/rsnapshot_backups
- ssh-keygen
- Copy ~/.ssh/id_rsa.pub and ~/.ssh/authorized_keys on remote machines, if required
- Add /etc/hosts entries for private IPs for local backups
- SSH to remote machine as root and accept fingerprints
- vim /etc/rsnapshot.conf and change with tabs and ending / in mind.
- snapshot_root
- /mnt/large_files/rsnapshot_backups/
- no_create_root
- 1
- Follow Rsnapshot for most part without forgetting remote backup including databases on remote machine as required
- Install logwatch and set /etc/aliases for root user
- Set correct time zone CentOS 7.x Change system timezone
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_rsnapshot|rsnapshot</yambe:breadcrumb>
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</yambe:breadcrumb>