Difference between revisions of "CentOS 7.x create lightsail rsnapshot instance"
From Notes_Wiki
m |
m |
||
Line 23: | Line 23: | ||
# yum -y install epel-release | # yum -y install epel-release | ||
# yum -y install wget | # yum -y install wget | ||
# yum -y rsnapshot | # yum -y install rsnapshot | ||
# Create appropriate swap space using [[CentOS 7.x adding swap space using file]] | # 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]] | # Setup fail2ban using [[CentOS 7.x fail2ban]] including firewalld using [[CentOS 7.x Basic firewalld configuration]] |
Latest revision as of 09:02, 6 March 2025
Home > CentOS > CentOS 7.x > System Administration > Rsnapshot > CentOS 7.x create lightsail rsnapshot instance
Home > CentOS > CentOS 7.x > CentOS 7.x Setup lightsail instances > 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 install 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
Home > CentOS > CentOS 7.x > CentOS 7.x Setup lightsail instances > CentOS 7.x create lightsail rsnapshot instance