innobackupex --rsync 报错 Error: can't create file (null)/xtrabackup_rsyncfiles_pass1
2015-11-18 12:01
801 查看
在使用最新版的innobackupex(2.3.2):
innobackupex /backup --rsync --user=xx --password=xxx 备份时报错:
网上搜索没有找到答案,于是向官方报告 bug ,发现已经有人汇报了该bug:
https://bugs.launchpad.net/percona-xtrabackup/+bug/1511701
解决办法:
在使用 --rsync 选项时,需要增加 --tmpdir=/tmp 选择,来指定 xtrabackup_rsyncfiles_pass1 临时文件的存储位置:
innobackupex /backup --rsync --user=xx --password=xxx 备份时报错:
Error: can't create file (null)/xtrabackup_rsyncfiles_pass1
网上搜索没有找到答案,于是向官方报告 bug ,发现已经有人汇报了该bug:
https://bugs.launchpad.net/percona-xtrabackup/+bug/1511701
Bug Description After latest update xtrabackup to 2.3.2 my backup scripts stop working. Problem in "--rsync" argument. With it in half of "copying X to Y" xtrabackup exit with error message: ~~ can't create file (null)/xtrabackup rsync files pass1 ~~ With previous builds all was fine. Problem command line: ~~ innobackupex --defaults-file=/etc/mysql/my.cnf --user=root --password=`cat /root/passwords/.mysql` --no-timestamp --throttle=40 --rsync /var/backups/separate_disk/mysql/${WEEK_DAY_NUMBER}f 2>&1 ~~ If remove "--rsync" - all work without errors. P.S. and previous versions uses "root" as default user name. Now it use "mysql" if in command line didn't defined "--user". (Back incompatibility) Add tags Tag help Sergei Glushchenko (sergei.glushchenko) wrote on 2015-10-30: #1 Would specifying --tmpdir=/tmp (or other directory) resolve the rsync issue? Maxim (sailormax) wrote on 2015-11-01: #2 yes. Sergei Glushchenko (sergei.glushchenko) wrote on 2015-11-09: #3 We'll set tmpdir to system/user default when it is not specified. Changed in percona-xtrabackup: status: New → Triaged importance: Undecided → High
解决办法:
在使用 --rsync 选项时,需要增加 --tmpdir=/tmp 选择,来指定 xtrabackup_rsyncfiles_pass1 临时文件的存储位置:
innobackupex /backup/ --rsync --tmpdir=/tmp --user=xxx --password=xxx
相关文章推荐
- voip vos软交换,vos数据库备份恢复
- 科普技术贴:个人开发者的那些赚钱方式
- 重启、蓝屏等 导致Android Stuido 发生"cannot resolve symbol" 解决方案
- 关于Android生命周期方法调用return的问题
- CentOS下nginx解析本地虚拟域名
- Windows下使用Java调用ElasticSearch提供的相关API进行数据搜索完整实例演示
- Win2D 官方文章系列翻译 - 像素格式
- 事务基础
- [CAMCOCO][C#]我的系统架构 总图
- 二叉查找树
- Objective-C 中声明指针变量时 星号( *)如何安放 居左or居右
- 使用C#代码获取存储过程返回值
- 文章标题
- sql内置函数pivot强大的行转列功能
- DEELX 正则表达式扩展语法:递归表达式
- Win2D 官方文章系列翻译 - 与 Direct2D 互操作
- python--自动删除文件
- 状态模式(State Pattern)
- MySQL针对Discuz论坛程序的基本优化教程
- 利用scp 远程上传下载文件/文件夹