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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.