CentOS 7.x create lightsail rsnapshot instance

From Notes_Wiki

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:

  1. Create appropriate lightsail instance
  2. Create DNS entry for FQDN mapping to public IP
  3. Download corresponding regions private key
  4. chmod 400 <private-key>
  5. ssh -i <private-key> centos@<instance-public-ip>
  6. sudo su -
  7. Disable SELinux
  8. yum -y install vim
  9. vim ~/.ssh/authorized_keys
    Add own key, Allow <private-key> direct root aaccess. (First line 155x)
  10. Set hostname
    hostname <desired-fqdn>
    vim /etc/hostname
  11. Exit
  12. ssh directly as root with self public key
  13. yum -y install epel-release
  14. yum -y install wget
  15. yum -y rsnapshot
  16. Create appropriate swap space using CentOS 7.x adding swap space using file
  17. Setup fail2ban using CentOS 7.x fail2ban including firewalld using CentOS 7.x Basic firewalld configuration
  18. Configure system to store history date time using Storing date / time along with commands in history
  19. exit and ssh again for history settings to take effect
  20. mkdir -p /mnt/large_files/rsnapshot_backups
  21. ssh-keygen
  22. Copy ~/.ssh/id_rsa.pub and ~/.ssh/authorized_keys on remote machines, if required
  23. Add /etc/hosts entries for private IPs for local backups
  24. SSH to remote machine as root and accept fingerprints
  25. vim /etc/rsnapshot.conf and change with tabs and ending / in mind.
    snapshot_root
    /mnt/large_files/rsnapshot_backups/
    no_create_root
    1
  26. Follow Rsnapshot for most part without forgetting remote backup including databases on remote machine as required
  27. Install logwatch and set /etc/aliases for root user
  28. 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