CentOS 7.x create lightsail rsnapshot instance

From Notes_Wiki
Revision as of 07:26, 26 January 2019 by Saurabh (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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:

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