Main Menu

Search

Showing posts with label backup. Show all posts
Showing posts with label backup. Show all posts

Oracle VM Manager (OVMM): How To Manually Backup OVM Manager DB (Database)?

Follow below steps to manually backup OVM Manager Database.

1. Login to OVM Manager Host as root user.

2. Run below command as root user on OVM host.

/u01/app/oracle/ovm-manager-3/ovm_tools/bin/BackupDatabase -w -n <filename>

You will be prompted for username and password. Enter the username as "admin" and provide "admin" user password for password prompt. Replace the filename with the filename you want for the backup. For e.g. if you want to have backup filename as ovm-db-backup, your command looks as follows:

/u01/app/oracle/ovm-manager-3/ovm_tools/bin/BackupDatabase -w -n ovm-db-backup
Below is example of console output you will see when running above command.
.

# /u01/app/oracle/ovm-manager-3/ovm_tools/bin/BackupDatabase -w -n ovm-db-backup
Enter your OVM Manager username: admin
Enter your OVM Manager password:

INFO:  Backup job starting with destination:
        /u01/app/oracle/mysql/dbbackup/ovm-db-backup-20190929_160600

        Job Id   = 'Start Backup to: ovm-db-backup(1569787560937) Uri: https://localhost:7002/ovm/core/wsapi/rest/Job/1569787560937'
        Job Name = 'Start Backup to: ovm-db-backup'

INFO:  Backup job finished

As you can see from above output the backup completed successfully and DB backup directory is "/u01/app/oracle/mysql/dbbackup/ovm-db-backup-20190929_160600"

3. Verify that the OVM Manager backup is available inside "/u01/app/oracle/mysql/dbbackup/" directory using this command.

ls -ld /u01/app/oracle/mysql/dbbackup/*


Products to which Article Applies

Oracle VM Manager Version 3.3.X & Above Versions  

Additional Reference

https://docs.oracle.com/cd/E50245_01/E50251/html/ch05s01s02s02.html

LINUX: Take Backup of Files Using DateTimeStamps In Backup Filename (How To Doc)

Below is the command to take backup of file so that backup file has datetimestamps (Date / Timestamps) in name when the file was backed up.
cp -rp testfile.out testfile.out__$(date +%F'-'%T)

In above command example we are backing up testfile.out. Change this filename to the filename you want to backup. Below is example snippet which shows the backup file created with datetimestamps (highlighted in bold).

-rw-r--r-- 1 root root   0 Sep 28 14:39 testfile.out__2019-09-28-14:39:16
-rw-r--r-- 1 root root   0 Sep 28 14:39 testfile.out

Products to which Article Applies

All UNIX Operating Systems