Kamis, 27 Agustus 2020

RHV-Simple backup OK

 

oVirtSimpleBackup - WebGUI - Installer - Debian

Instructions for using this installer

1.buat satu vm dng ubuntu 18.04 nama vmsimplebackup(172.16.10.250)
download scrip dan jlnkan
  • apt-get install curl sshpass nfs-common
  • curl https://raw.githubusercontent.com/zipurman/oVIRT_Simple_Backup/master/server/installer/install.sh | bash
root@ubuntu:~# /opt/oVirtSimpleInstaller/installer.sh
Checking to see if anything needs to be installed ...
Reading package lists... Done
Building dependency tree        
Reading state information... Done
sshpass is already the newest version (1.06-1).
nfs-common is already the newest version (1:1.3.4-2.1ubuntu5.3).
0 upgraded, 0 newly installed, 0 to remove and 318 not upgraded.

   __      ___      _      _____ _                 _        ____             _                 
   \ \    / (_)    | |    / ____(_)               | |      |  _ \           | |                
  __\ \  / / _ _ __| |_  | (___  _ _ __ ___  _ __ | | ___  | |_) | __ _  ___| | ___   _ _ __   
 / _ \ \/ / | | '__| __|  \___ \| | '_ ` _ \| '_ \| |/ _ \ |  _ < / _` |/ __| |/ / | | | '_ \  
| (_) \  /  | | |  | |_   ____) | | | | | | | |_) | |  __/ | |_) | (_| | (__|   <| |_| | |_) |
 \___/ \/   |_|_|   \__| |_____/|_|_| |_| |_| .__/|_|\___| |____/ \__,_|\___|_|\_\__,_| .__/  
                                            | |                                        | |     
                                            |_|                                        |_|     

                oVirt Simple Backup (WebGUI) Installer Version 0.1.4
                         Written for Debian 8/9 Installs Only


It is recommended that your read the following linked page and understand it as best as you can prior to continuing.


       https://github.com/zipurman/oVIRT_Simple_Backup/blob/master/docs/install_debian.md


Have you read the page linked above? [y/N]: y

*** Setting Up Plugin for oVirt Web UI ***

Updating oVirtEngine

Redirecting to /bin/systemctl restart ovirt-engine.service


You should now be able to login to your oVirt WebUI and see the Simple Backup tab in the menu.

       - Navigate to oVirtWebUI: https://engine.yogya.com
       - Navigate Directly to oVirtSimpleBackupVM: https://backup.yogya.com


       - You may also want to edit /var/www/html/allowed_ips.php to suit your needs.

root@ubuntu:~# 

2.buka server engine.yogya.com (172.16.9.241) otomatis simple backup ke install


  1. If you are planning on using oVirtSimpleBackup for Xen Migration - Install a new VM in your Xen Environment named VMMIGRATE using the Instructions Here before installing the script below. The script below will require the VMMIGRATE VM but running and available while the script is installing. Again, this is only for Xen Server Migrations, if you are not migrating from Xen, then you can run the install script below without worrying about VMMIGRATE.

  2. Create a new VM in oVirt called SimpleBackup ** USE DISK TYPE virtio (recommended) **

    • INSTALL DEBIAN 9 using the following settings:

      • NAME: SimpleBackup
      • RAM: >=4GB
      • DISK: 8GB using automated partitioning
      • MAKE SURE YOU INSTALL USING "US ENGLISH" FOR LANGUAGE AS SOME SCRIPTING MAY NOT WORK IF USING OTHER LANGUAGES
      • MINIMAL INSTALL WITH SSH SERVER
    • ONCE SimpleBackup VM INSTALLED

      • Login as root and do the following:
        • Setup a STATIC IP address, gateway, dns to what you will require.
        • apt-get install curl sshpass nfs-common
        • curl https://raw.githubusercontent.com/zipurman/oVIRT_Simple_Backup/master/server/installer/install.sh | bash
        • Follow the onscreen instructions
  3. Once install script is complete:

    • Navigate to your new install at https://FQDNofYouroVirtSimpleBackupVM and accept the SSL certificate
    • Go to settings tab and enter in the UUID, FQDN, USER, PASS and save
    • Then set the DOMAIN and CLUSTER and save again
    • Then enter any additional info and save one more time
    • If you will be using Xen Server Migration, add the Xen Server IP to your configuration page and save. Then add the rest of the Xen Server settings and save again.
    • You will also need to delete any snapshots you created on your SimpleBackup VM during install before you try using it as snapshots on the SimpleBackup VM will not allow any additional disks to be attached.
    • You should now be able to test your new install, do backups, migrate xen (if configured).

Scheduling Backups

  • In simpleBackup, open Settings and confirm the email address and retention
  • In simpleBackup, open Scheduled Backups and select the VMs you want to backup on the schedule and click SAVE
  • Add a cronjob to the simpleBackup VM as follows (to run every 5 minutes - will check backup scheduled times within 6 minute buffer time. So a backup scheduled in the UI for 8:30 will fire any where between 8:30 and 8:35):
*/5 * * * * www-data php /var/www/html/automatedbackup.php >/dev/null 2>&1

Tidak ada komentar:

Posting Komentar