Difference between revisions of "CentOS 7.x create lightsail rsnapshot instance"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x rsnapshot|Rsnapshot]] > [[CentOS 7.x create lightsail rsnapshot instance]] | |||
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</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= | =CentOS 7.x create lightsail rsnapshot instance= | ||
Line 45: | Line 48: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x rsnapshot|Rsnapshot]] > [[CentOS 7.x create lightsail rsnapshot instance]] | |||
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</yambe:breadcrumb> | <yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</yambe:breadcrumb> |
Revision as of 06:33, 25 August 2022
Home > CentOS > CentOS 7.x > System Administration > Rsnapshot > CentOS 7.x create lightsail rsnapshot instance
<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
Home > CentOS > CentOS 7.x > System Administration > Rsnapshot > CentOS 7.x create lightsail rsnapshot instance
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</yambe:breadcrumb>