How to automate the backup process of Embedded Oracle or PostgreSQL Database on RHN Satellite?

Updated -
  • Use below script for Oracle embedded database backup,
    #!/bin/bash
    ## Database Backup Script - Oracle Embedded Only ##

    export VER=`date +%j`
    /usr/sbin/rhn-satellite stop
    su - oracle -c 'mkdir backup-$VER'
    su - oracle -c 'db-control backup backup-$VER'
    /usr/sbin/rhn-satellite start
    su - oracle -c 'db-control verify backup-$VER'
...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content