rman备份脚本
#! /bin/bash
su - oracle
rman target /
backup AS COMPRESSED BACKUPSET
database
include current controlfile format'/orabak/db_%d_%T_%s'
plus archivelog format'/orabak/a...
分类:
系统相关 时间:
2014-06-17 19:33:13
阅读次数:
348
gamedb:/bak/backup/web#find.-maxdepth1-ctime+60|more
./cncgcg
./gm
./igame
./20140410
./20140403
./qzstatistics
./20140415使用maxdepth可以指定列出的层数
分类:
其他好文 时间:
2014-06-17 17:07:30
阅读次数:
253
ocp 053:656.The BACKUP_TAPE_IO_SLAVES parameter is set to FALSE for the database instance. Whichstatement is true while performing a tape backup in an...
分类:
其他好文 时间:
2014-06-17 15:27:56
阅读次数:
481
[root@rhel6sbin]#moremysqlbackup.sh#IfanyofyourtablesrunonInnoDBengine#directorytostorebackupsinDST=/backup/dbback#Aregex,passedtoegrep-v,forwhichdatabasestoignoreIGNREG=‘^snort$‘#TheMySQLusernameandpasswordDBUSER=rootDBPASS=62201042#Anybackupsolderthanthis..
分类:
数据库 时间:
2014-06-16 16:17:27
阅读次数:
265
#backup.sh
#!/bin/sh
#
# 第一次执行它的时候它会检查是否有完全备份,否则先创建一个全库备份
# 当你再次运行它的时候,它会根据脚本中的设定来基于之前的全库备份进行增量备份
#ocpyang@126.com
INNOBACKUPEX_PATH=innobackupex #INNOBACKUPEX的命令
INNOBACKUPEXFULL=/usr/bin/$IN...
分类:
数据库 时间:
2014-06-15 17:03:17
阅读次数:
271
1.crontab你可以在指定的时间执行一个shell脚本或者一系列Linux命令.可以让计算机在规定的时间内,执行相应的计划。2.实例# crontab –e0 6 * * * /root/bin/backup.sh这样Linux将会在每天早上6点运行 /root/bin/backup.sh3.命...
分类:
系统相关 时间:
2014-06-15 11:12:21
阅读次数:
566
有这样一个业务场景,需要在2个表里比较存在于A表,不存在于B表的数据。表结构如下:T_SETTINGS_BACKUP | CREATE TABLE
`T_SETTINGS_BACKUP` ( `FID` bigint(20) NOT NULL AUTO_INCREMENT, `FUSERID` .....
分类:
数据库 时间:
2014-06-12 21:32:15
阅读次数:
453
Nagios安装配置说明修改YUM源为国内sohu的站点;[root@nagios~]#cd/etc/yum.repos.d/[root@nagiosyum.repos.d]#lsCentOS-Base.repoCentOS-Debuginfo.repoCentOS-Media.repoCentOS-Vault.repo[root@nagiosyum.repos.d]#mvCentOS-Base.repoCentOS-Base.repo.backup[root@nagiosyu..
分类:
移动开发 时间:
2014-06-10 23:59:17
阅读次数:
484