OS Backup Commands
A summary of the operating system backup commands you might encounter whilst backing up Oracle databases.
oracle miscconfigurationintermediate
by OracleDba
14 views
A summary of the operating system backup commands you might encounter whilst backing up Oracle databases.
12345678910111213141516171819202122
ntbackup backup c:\ /d "Daily Backup" /hc:on /l "C:\backup.log" /e /t normal /v
c:\ : The drive to backup.
/d "Daily Backup" : The name of the backup set.
/hc:on : Harware compression on.
/l "C:\backup.log" : Location of the logfile.
/e : Log exceptions only.
/t normal : Backup type normal.
/v : Verify backup.
ntbackup backup c:\ /D "Daily Backup" /HC:on /L:s /M normal /P DLT /V:yes /UM
c:\ : The drive to backup.
/D "Daily Backup" : The name of the backup set.
/HC:on : Harware compression on.
/L:s : Summary data only in log.
/M normal : Backup type normal.
/P DLT : Media pool assignment (Backup/DLT).
/V:yes : Verify backup.
/UM : Unmanaged.
C:\Documents and Settings<user-name>Local Settings\Application Data\Microsoft\Windows NT\NTbackup\Data12345678910111213141516
# Create archive.
cd /u01/app/oracle
tar -cvf /tmp/admin.tar admin
# Restore archive.
cd /tmp
tar -xvf admin.tar
# Mount and rewind the tape.
mt -f /dev/rmt/2m rew
# Create archive.
tar -cvf /dev/rmt/2m /u01/*
# Restore archive.
tar -xvf /dev/rmt/2m12345678
# Mount and rewind the tape.
mt -f /dev/rmt/2m rew
# Create archive.
dd if=/u01/app/oracle/* of=/dev/rmt/2m BS=32K
# Restore archive.
dd if=/dev/rmt/2m of=/u01/app/oracle BS=32K123456789
# Create archive.
cd /u01/app/oracle
find admin | cpio -oc > /tmp/admin.cpio
# Restore archive.
cd /tmp
cpio -idmv < admin.cpio
find /u01/app/oracle/admin | cpio -oc > /tmp/admin.cpio1234567
/sbin/vdump -0 -u -f /dev/tape/tape1_d6 /u01
/sbin/rvdump -0 -u -f server2:/dev/tape/tape1_d6 /u01
/sbin/vrestore -xf /dev/tape/tape1_d6 -D /u01
/sbin/rvrestore -xf server2:/dev/tape/tape1_d6 -D /u01Please to add comments
No comments yet. Be the first to comment!