recovery

mysql增量备份依次恢复库

夙愿已清 提交于 2019-12-31 23:43:09
#!/bin/bash #scripts sh recovery_increment.sh 时间 日期 例如: 14 20180228 bakfile=/data/dbbackup logfile=/data/bak.log dbuser=xxx dbpasswd=xxxx ip= ifconfig | grep "inet addr"| grep Bcast| awk '{print $2}'| awk -F":" '{print $2}' #增量还原 recovery increment() { #解压增量备份到的新子目录 mkdir -p $bakfile/test cd $bakfile/test tar -xf $bakfile/$2 ${ip}_$1.DailyBak.tar.gz cd daily #把二进制的binlog文件转成sql,按最早的时间开始转换sql mysqlbinlog mysql-bin.000602 > ida.sql #如果有好几个增量备份,用到追加 mysqlbinlog mysql-bin.000603 >> ida.sql mysql -u$dbuser -p$dbpasswd < ida.sql echo "导入完成" if [ -f ida.sql ] then echo "ida.sql 存在" else echo "ida.sql

刷CM7固件 乐padA1-07专用固件

こ雲淡風輕ζ 提交于 2019-12-31 03:29:04
-------------------------------------------------------------------------------- 前几天在版块里看帖子的时候,发现好多热心的乐友问我CM7到底是个什么固件,到底怎么才能刷CM7固件。的确,CM7是一款由国外大神制作的、非常强大的联想乐padA1-07专用固件。用过它的人都不愿意再换其他固件,因为它实在是太流畅了。废话不多说,送上图文教程以及下载地址!注册账号后回复就可以下载啦~ 刷机前提示!确保电量在百分之30以上!电量不足可能导致各种悲剧后果! 第一步:下载CM7刷机必备recovery CWM5.0.2.7以及刷机固件update-cm7-A1_07-20120601.zip 游客,如果您要查看本帖隐藏内容请回复 应论坛里某大提醒(想知道谁去回复里找),放上cwm 5.0.2.8的recovery的下载地址。提醒一下,cwm-5.0.2.7版本recovery 适用于 7月8日前cm7的rom, cwm 5.0.2.8的recovery 适用于7月8日之后的rom。 cwm5.0.2.8 recovery 下载地址: http://pan.baidu.com/share/link?shareid=25122&uk=2535699044 第二步:准备一张至少2G的TF卡,用读卡器连接电脑

RMAN RECOVERY

孤街浪徒 提交于 2019-12-29 02:59:04
Data Recovery Advisor The health monitor and the ADR The capabilities and limitations of DRA using the DRA Complete recovery from data file loss with RMAN Recovery in noarchive log mode Recovery in archive log mode Recovery from loss of noncritical files Recovery from loss of critical files Incomplete recovery Auto backup of control file Using image copy for recovery Block recovery deteact broken data block rman blcok media recovery    Data Recovery Advisor DRA is data recovery advisor. It is capable of generating scripts to repari damage of data files and control files. It cannot repair

laravel框架踩过的坑

爷,独闯天下 提交于 2019-12-25 05:08:38
1、数据库的原生使用 文档:https://learnku.com/docs/laravel/5.8/queries/3926,DB:row 需要在查询中使用原生表达式, selectRaw 方法可以代替 select(DB::raw(...)) 。该方法的第二个参数是可选项,值是一个绑定参数的数组: $orders = DB::table('orders') ->selectRaw('price * ? as price_with_tax', [1.0825]) ->get();eg: $data = $recoveryOrder->leftJoin('user_wechats', 'recovery_orders.user_id', '=', 'user_wechats.user_id') ->leftJoin('recovery_order_expresses', 'recovery_orders.id', '=', 'recovery_order_expresses.order_id') ->leftJoin('recovery_order_senders', 'recovery_orders.id', '=', 'recovery_order_senders.order_id') ->leftJoin('recovery_order_receivers',

How do I recover previous Local histories?

走远了吗. 提交于 2019-12-25 03:37:17
问题 My machine went off recently without shutting down and my IDEA workspace seems to be different. The file I was working on now only has a blank spaces. and the local history for it is empty how can I get this file back. The file is more than 6 months old. I really don't know what to do. Is there a way I can recover from past local histories or the cache? 回答1: Empty Local History may indicate corrupted indices. Probably the shutdown occurred right in the middle of some write operation. If you

记录8.0.5数据库恢复过程

ⅰ亾dé卋堺 提交于 2019-12-24 18:19:13
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 某银行需要恢复2004年磁带备份数据库 8.0.5,当时因为开发商使用begin backup命令进行热备,然后压缩到磁带上.在硬盘紧张,rman不成熟的时代,使用这样的方法备份本身没有大问题,可是因为没有备份归档日志,给现在的恢复带来了很多的问题. 尝试不完全恢复启动库 SVRMGR> startup pfile= 'init.ora' mount ORACLE instance started. Total System Global Area 141826208 bytes Fixed Size 47264 bytes Variable Size 124829696 bytes Database Buffers 16777216 bytes Redo Buffers 172032 bytes Database mounted. SVRMGR> recover database using backup controlfile until cancel; ORA-00279: change 613561556 generated at 08/21/04 22:42:48 needed for thread 1 ORA-00289: suggestion : /oracle/product/8.0.5/dbs

Reboot in Recovery Android

六眼飞鱼酱① 提交于 2019-12-24 08:08:26
问题 I've finally managed to get the Reboot code work. I used following code : Runtime runtime = Runtime.getRuntime(); Process proc = null; OutputStreamWriter osw = null; StringBuilder sbstdOut = new StringBuilder(); StringBuilder sbstdErr = new StringBuilder(); String command="/system/bin/reboot"; try { // Run Script proc = runtime.exec("su"); osw = new OutputStreamWriter(proc.getOutputStream()); osw.write(command); osw.flush(); osw.close(); } catch (IOException ex) { ex.printStackTrace(); }

Move saved TortoiseSVN authentication to another machine?

心不动则不痛 提交于 2019-12-24 04:05:37
问题 Is there a way to move a saved login/password for TortoiseSVN to a network repository from machine to machine? Just got a new machine, know my username but don't recall my login to the repository. I know TortoiseSVN saves some auth info on the directories at %appdata%\Subversion\auth Moved over the file I found at svn.simple; I see my user name in it in clear text but the password is encrypted. I also see "wincrypt" in the file so that's the crypto functionality invoked. Ordinarily I'd just

Set Remote Service's Recovery Options using Powershell?

柔情痞子 提交于 2019-12-23 10:44:48
问题 I am have a really hard time getting this to work. Hopefully someone can help me out! I am currently working on a Powershell deployment script for a service. After installing the service, I'd like to set the Service Recovery options to "Restart the Service" every time the service crashes after 0 minutes. Does anyone know how to do this using Powershell to set these options for remote machine? 回答1: If it were a local service you could use sc.exe however you want to change settings for remote

Set Remote Service's Recovery Options using Powershell?

喜欢而已 提交于 2019-12-23 10:44:03
问题 I am have a really hard time getting this to work. Hopefully someone can help me out! I am currently working on a Powershell deployment script for a service. After installing the service, I'd like to set the Service Recovery options to "Restart the Service" every time the service crashes after 0 minutes. Does anyone know how to do this using Powershell to set these options for remote machine? 回答1: If it were a local service you could use sc.exe however you want to change settings for remote