The following example uses the Database Resource Name,
mydb
and the Backup
Configuration Name,
mydb
:
# odacli update-database -in mydb -bin mybcfg -bp
You can create manual backups or scheduled backups to disk.
Preparing for Database Backup to NFS Location
Use the command-line interface to create a policy to backup a database to an External
FRA (NFS Location).
You can create a backup policy using the Web Console or the command-line interface.
Most of the backup and recovery commands enable you to provide either a resource
name or resource ID to identify the database.
Backup to NFS location or the Backup to External FRA option in the Web Console,
requires creation of an NFS mount point.
Follow these steps to create a backup policy through the command-line interface:
1.
Create a BackupConfig object (backup configuration) using the command
odacli
create-backupconfig
.
The backup configuration defines the backup, including the location where you
want to store the backups and the recovery window.
The following example creates a backup configuration named
mkg1dailydisk
with
a backup to
disk
and a 1 day recovery window.
# odacli create-backupconfig -d NFS -n mkg1dailynfs -c
absolute-path-to-parent-directory-for-NFS-destination -w 1
2.
Check the job status.
# odacli list-jobs
When the job completes successfully, the backup configuration is ready.
3.
(Optional) Update an existing database to attach the backup configuration to the
database using the ID or Name.
When you attach the backup configuration to a database, the
dcs-agent
schedules daily automatic backups for the database.
The following example uses the Database Resource ID and Backup Configuration
ID:
# odacli update-database -i d3c4d8f6-5eb7-4f9e-ab27-7bdd5013ac90
-bi 9d942e0a-ba00-4cbc-9bfb-0de83ed279e5 -bp
The following example uses the Database Resource Name,
mydb
and the Backup
Configuration Name,
mydb
:
# odacli update-database -in mydb -bin mybcfg -bp
Chapter 11
Using the CLI to Backup, Restore, and Recover
11-16
Summary of Contents for Database Appliance X6-2-HA
Page 15: ...Index xv...