Difference between revisions of "CentOS 7.x create lightsail rsnapshot instance"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_rsnapshot|rsnapshot</yambe:breadcrumb>
[[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:




<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_rsnapshot|rsnapshot</yambe:breadcrumb>
[[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:

  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

<yambe:breadcrumb self="create lightsail rsnapshot instance">CentOS_7.x_Setup_lightsail_instances|Setup lightsail instances</yambe:breadcrumb>