Skip to content

Instantly share code, notes, and snippets.

@flandersen
flandersen / oracle-database-recovery.txt
Created Jul 15, 2022
Oracle database recovery write-up
View oracle-database-recovery.txt
# ----------------------------------------------------------------------------------------
# Restoring the database of the development system with a backup from the live system.
# Using Trivadis BasEnv as standardization tool for setting Oracle environment variables.
# ----------------------------------------------------------------------------------------
# 1. Stop the database.
TYPE (Cluster|DG) : SID/PROCESS STATUS HOME [2021-03-18 10:01:34]
----------------------------------------------------------------------------------------
Dummy rdbms : OraDB19Home1 n/a D:\app\oracle\product\19.0.0a
@flandersen
flandersen / backup-git-repos.sh
Last active Mar 29, 2020
Backing up Git repositories by creating bundles and syncing them to a remote server using Rsync.
View backup-git-repos.sh
#!/bin/bash
# Author: flandersen
# Date: 29.03.2020
# https://gist.github.com/flandersen/6d33c609de80247c9059bf8c3e2ade05
#
# Backups the repositories to a backup directory and syncronizes
# the backup dir to a backup server using rsync.
#
# Example usage: