How do I restore files from my rsync backup on Linux?

Log in as root to your server

To restore a single file (LEDGER) to a temporary directory (/esupport/restore):

mkdir -p /esupport/restore
rsync -av --progress --inplace --stats /mnt/nas/rsync/u2/backup-20170118.2200/eclipse/LEDGER /esupport/restore/

To restore an entire directory (/u2/eclipse) to it’s original location (/u2/eclipse) for a full system recovery:

Warning: As always, please exercise caution when performing system maintenance, especially when initiating processes that can potentially overwrite data.
rsync -av --progress --inplace --stats /mnt/nas/rsync/backup-20170118.2200/u2/eclipse/ /u2/eclipse/

Best practices for securing the Eclipse database server

  • Don’t allow direct access to the Linux server from the public Internet
  • Don’t use a weak root password
  • Disable root remote Login
  • Don’t allow Eclipse users to use blank passwords – Enforce Stronger Passwords
  • Disable Unwanted Services
  • Enable Firewall
  • Keep your system up-to-date by installing updates (e.g. operating system, software, and firmware updates) and rebooting on a monthly basis.
  • Monitor Server Logs Regularly

Configure Postfix Relay with Google Apps

 

Recommended Configuration (Google Apps paid accounts)

If you are using a paid version of Google Apps, and you would like to avoid Google rewriting the sender, you must first configure your Google Apps account for IP-based relay by following these instructions to allow relay from your server’s public IP address by any email addresses.

After Google Apps has been configured to allow relay from your server’s public IP address, you may configure postfix with:

relayhost = [smtp-relay.gmail.com]

Alternative Configuration (Google Apps free accounts, Gmail)

The correct SMTP server configuration for the free version of Google Apps and Gmail is:

relayhost = [smtp.gmail.com]:587

Please note that Google will automatically rewrite the sender (FROM) address to match whichever account is used for SMTP authentication (i.e. if you authenticate with eclipse@domain.com, all emails will appear to be sent from that address, regardless of which from address is specified in Eclipse). This is a limitation enforced on Google’s end, so there is no way around this on the Linux server side, other than to use a paid version of Google Apps (please see above) or use a mail relay service like SendGrid.

RHEL7 installation guide for eclipse

Operating System Installation

  • Boot from RHEL 7 media
  • Select “Install Red Hat Enterprise Linux 7.0” and press enter
  • At the Welcome screen, select Continue
  • At the Installation Summary screen
    • Select Date & Time (optional, defaults to Eastern)
    • Select Software Selection
      • Select Server with GUI or Minimal Install (add other groups and services later)
      • Select Done
    • Select Installation Destination
      • Select 1st Local Standard Disk (a checkmark will appear)
      • Select “I will configure partitioning” (Other Storage Options -> Partitioning)
      • Select Done
      • Select “Click here to create them automatically”
      • Select the root filesystem
        • Change the capacity to 30GB
        • Select Modify volume group
        • Change the name to “rootvg”
        • Select Save
      • Select the swap partition
        • Change the capacity to 4GB
      • Select the “+” button to add a new mount point
        • Mount point: /esupport
        • Capacity: 10GB
        • Select Done
      • Select Accept Changes
    • Select Network and Hostname
      • Switch the interface on
      • (Optional: set the static IP address)
      • Set the hostname (e.g. eclipse-customername)
      • Select Done
    • Select Begin Installation
  • Select Root Password
    • Set the password and confirm it
    • Select Done twice
  • When the installation has completed, select Reboot
  • At the Initial Setup screen, select License Information
    • Select “I accept the license agreement”
    • Select Done
  • Select Finish Configuration
    • At the Kdump screen, select Forward
    • At the Subscription screen, select “No, I prefer to register at a later time”
    • Select Finish