Windows MySQL Backup Script
@ECHO OFF SET BACKUPS_DIR=Z:/mysqlbackup/ ECHO map network drive REM ============================ SET OLDDIR=%CD% REM The date in ISO format, to be appended to backup filenames. REM get a list of all databases hosted on the server FOR /F %%D IN (mysqldblist.tmp) DO ( DEL mysqldblist.tmp CD %OLDDIR% ECHO Disconnect the mapped drive :: AutoMySQLBackupForWindows Servers By Matt Moeller v.1.2 :: Follow us on twitter for updates to this script twitter.com/redolivedesign :: UPDATE 12.29.2011 Thanks to Kamil Tomas for catching and resolving the time bug ::If the time is less than two digits insert a zero so there is no space to break the filename set year=%DATE:~10,4% IF %day% LSS 10 SET day=0%day:~1,1% set backupdate=%year%-%day%-%mnt%-%hr%-%min% :: MySQl DB user :: MySQl DB users password :: Switch to the MySQL data directory and collect the folder names :: Loop through the folders and use the fnames for the sql filenames, collects all databases automatically this way echo "hello" echo "Pass each name to mysqldump.exe and output an individual .sql file for each" FOR /D %%F IN (*) DO ( echo "Zipping all files ending in .sql in the folder" "c:\MySQLBackups\zip\7za.exe" a -tzip "c:\MySQLBackups\backupfiles\FullBackup.%backupdate%.zip" "c:\MySQLBackups\backupfiles\*.sql" echo "Deleting all the files ending in .sql only" del "c:\MySQLBackups\backupfiles\*.sql" echo "Deleting zip files older than 30 days now" ::FOR THOSE WHO WISH TO FTP YOUR FILE UNCOMMENT THESE LINES AND UPDATE - Thanks Kamil for this addition! ::cd\[path to directory where your file is saved]
REM ============================
REM == SETTINGS ================
SET MYSQL_DIR=%PROGRAMFILES%\MySQL\MySQL Server 5.1\bin
SET USER="backup_user"
SET PASSWORD="backup_password"
SET SHAREPATH="\\192.168.148.9\14875"
SET NETUSER="netuser"
SET NETPWD="netpwd"
NET USE Z: %SHAREPATH% %NETPWD% /USER:%NETUSER%
CD %TEMP%
REM (Working from a UK formatted date)
REM SET TODAY=%DATE:~6,4%-%DATE:~3,2%-%DATE:~0,2%
SET TODAY=%date:~0,10%
"%MYSQL_DIR%\mysql" -u %USER% -p%PASSWORD% -B -s -e"show databases" > mysqldblist.tmp
ECHO Creating backup for database ''%%D''
"%MYSQL_DIR%\mysqldump" -u %USER% -p%PASSWORD% --default-character-set=utf8 --result-file="%BACKUPS_DIR%\%%D_%TODAY%.sql" "%%D"
)
NET USE Z: /DELETE
:: RED OLIVE DESIGN INC.
:: coming soon: email admin a synopsis of the backup with total file size(s) and time it took to execute
set day=%DATE:~7,2%
set mnt=%DATE:~4,2%
set hr=%TIME:~0,2%
set min=%TIME:~3,2%
IF %mnt% LSS 10 SET mnt=0%mnt:~1,1%
IF %hr% LSS 10 SET hr=0%hr:~1,1%
IF %min% LSS 10 SET min=0%min:~1,1%
set dbuser=root
set dbpass=123xyz
pushd "c:\MySQL\data"
"c:\MySQL\bin\mysqldump.exe" --user=%dbuser% --password=%dbpass% --databases %%F > "c:\MySQLBackups\backupfiles\%%F.%backupdate%.sql"
)
Forfiles -p c:\MySQLBackups\backupfiles\ -s -m *.* -d -30 -c "cmd /c del /q @path"
echo "All done, pretty slick eh"
::@echo off
::echo user [here comes your ftp username]>ftpup.dat
::echo [here comes ftp password]>>ftpup.dat
::echo [optional line; you can put "cd" command to navigate through the folders on the ftp server; eg. cd\folder1\folder2]>>ftpup.dat
::echo binary>>ftpup.dat
::echo put [file name comes here; eg. FullBackup.%backupdate%.zip]>>ftpup.dat
::echo quit>>ftpup.dat
::ftp -n -s:ftpup.dat [insert ftp server here; eg. myserver.com]
::del ftpup.dat
本日志由 flyinweb 于 2012-03-30 11:27:46 发表到 数据库技术 中,目前已经被浏览 200 次,评论 0 次;
作者添加了以下标签: MySQL Backup;
1、简介
Linux has always been able to show how much I/O was going on (the bi and bo columns of the vmstat 1 command).
Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on. It requires Python ≥ 2.5 (or Python ≥ 2.4 with the ctypes module) and a Linux kernel ≥ 2.6.20 with the TASK_DELAY_ACCT CONFIG_TASKSTATS, TASK_IO_ACCOUNTING and CONFIG_VM_EVENT_COUNTERS options on.
Iotop 是一个用来监视磁盘 I/O 使用状况的 top 类工具。如下图所示,Iotop 具有与 top 相似的 UI,其中包括 PID、用户、I/O、进程等相关信息。
The VBScript below will collect a number of hardware demographics from machines and output them to a CSV file. These demographics include:
You’ll need to supply an input file with one hostname or fqdn per line. You can configure the input and output files on lines 14 and 15 of the script.
本日志由 flyinweb 于 2012-03-24 19:35:59 发表到 Windows 中,目前已经被浏览 195 次,评论 0 次;
作者添加了以下标签: Hardware Inventory Data,硬件信息;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
简介: IBM® Cloud 的新特性支持应用程序开发人员和架构师消除应用程序中的单点故障。本文将提供关于那些特性的一个详细指南,其中包括关于 IBM Cloud 采用的一种方法(添加虚拟 IP 地址支持)的讨论,如何准备您的云实例以利用这个特性,如何设置一个高可用网站,以及如何测试该网站。
IBM® Smart Business Development and Test on the IBM Cloud 是一个动态提供且可伸缩的弹性环境,能够向企业客户提供他们开发、测试和托管应用程序所需的全部资源。它包含一个 web 门户,用于配置和管理云资源;一些 IBM 产品的软件映像,用于迅速开始开发和测试工作;以及一些 API,用于允许用户以编程方式控制云资源和软件。自从 IBM Cloud 问世以来,IBM 团队就一直致力于添加提供额外灵活性和弹性的新特性。
命令行方式调用:ftpDemo FTPServer FtpUser FtpPasswd RemotePath LocalFilePath
E:\autorun>ftpDemo
用法:
ftpDemo [/? | <FTPServer> <FTPUser>
<FTPPassword> <Directory> <LocalFileName>
这里
FTPServer FTP服务器.
FTPUser FTP用户名.
FTPPassword FTP密码
Directory FTP 目录.
LocalFileName 本地文件名
命令行实例:
上传文件 FtpDemo 192.168.0.110 110 110 / test.txt
Q. How do I display Apache server status such as current server activity and performance under Red Hat Enterprise Linux / UNIX / BSD?
A. You can use regular Linux / UNIX commands such as lsof, netstat, top, vmstat and others to view apache server activity, status and performance from a shell prompt. However, I recommend mod_status because it provides good information about Apache server.
本日志由 flyinweb 于 2012-03-21 14:36:00 发表到 WEB服务器 中,目前已经被浏览 189 次,评论 0 次;
作者添加了以下标签: mod_status,Apache Server Status;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
1. 篇首语
感谢Earthwings,penetrode,loyaltonone,pilla,airhead,nephros,yamakawa 和其他所有人在原帖上发表的建议。
示例中提供的仅是例子,请务必确保根据你的系统的实际情况改变分区号及类似信息。遵照本文档中所提供的解决方案须自己承担风险。
2. Grub loading, please wait...
代码 2.1: Grub输出 |
GRUB loading stage 1.5 GRUB loading, please wait... |
出现这段信息之后,系统停止。如果你试图用grub软盘引导系统,这种问题就会消失。
根据The_Bell你可以改变你BIOS中的引导命令。
调整你的BIOS使它不要首先从软盘启动。
penetrode上说这可能是由于错误的CFLAGS设定引起的。尽管现在的grub ebuild过滤掉了-fstack-protector,如果其他的不起作用运用干净的CFLAG重新编译grub也不会有问题。
本日志由 flyinweb 于 2012-03-14 16:20:55 发表到 Linux 中,目前已经被浏览 205 次,评论 0 次;
作者添加了以下标签: grub error,Fix Grub;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
root (hd0,0)4 o, K# Z. q! U8 ~7 z# i( ~
Filesystem type is ext2fs, partition type 0x83- G0 v# j- A2 Q- Q7 P. T% Z
kernel /bzImage_1360×768 ro root=LABEL=/ video...' g. f& m0 a G2 b% m% I. n
Error 15: File not found9 h9 X2 I" r# Z3 D0 w+ `2 c1 N' ~
Press any key to continue...
4 l6 E/ i0 A1 v* b% i4 z# R% ?; y
原因可能是系统启动配置被损坏,导致启动内核镜像无法找到,解决方法:
1.按任意键回到启动菜单,如grub的菜单。; e; Z8 Y% A" i1 N! A! m
, G# F0 g+ [ Z
2.在菜单界面按'c'进入grub命令行界面。7 r/ Q! N3 U2 t( j- Z
* |+ U. Y7 X& {' l! Z
3.在grub命令行下输入:
4 o) g2 g& Y0 [$ E
grub>root (hd0,0)
: T$ v& G1 s5 j! G4 h8 g
回车。会得到Filesystem的提示。2 _5 }& b/ g; ?. E% ^! H; A
4. 继续在grub命令行下输入:1 \5 Z8 [: a+ w
grub>kernel (hd0,0)/boot/
8 ^3 y5 O2 Z/ S9 m# s- m
不回车然后按tab键,会显示可选的内核镜像。
& N% L8 I" g+ G
继续在未完成的命令后输入有效地内核镜像名,如:4 f5 M( R( |* f- d0 l
grub>kernel (hd0,0)/boot/vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ vga=0x317
回车。(输入过程中按tab可以获得提示,后面的root和vga参数要自己确定,可在grub菜单里选择某一项按'e'查看和参考已有设置),会得到一行提示信息。
5. 继续在grub命令行输入:G0 V; x3 a2 D- Y3 Q
! a( t: Q' O0 z4 \3 k$ ~5 Q
grub> initrd (hd0,0)/boot/initrd-2.6.9-42.ELsmp.img1 }1 E2 |0 y$ M
+ t/ ~, Z) m' Q: B4 r" k/ i2 T5 T
回车。(同样可以在输入过程中按tab获得提示)
6. 最后在grub命令行中输入boot(注意不是reboot)启动系统:6 B7 ?2 W+ a; M- g8 \
/ r( P8 l6 |" z7 ?! v
grub> boot
I) {% Z# {3 x7 r
7. 等待系统启动,OK。
本日志由 flyinweb 于 2012-03-14 16:15:19 发表到 Linux 中,目前已经被浏览 214 次,评论 0 次;
作者添加了以下标签: Error 15: File not found;
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱