vitobotta / admin-scripts Goto Github PK
View Code? Open in Web Editor NEWSimple administration scripts I use on my servers.
Simple administration scripts I use on my servers.
I tried your script "xtrabackup.sh". The backup works like expectet but I get a problem with the restore prodedure. The call
xtrabackup.sh restore 2015-06-30_09-12-47 tmp/xxx
results in the error
sh: 1: xtrabackup_51: not found
And indeed: my xtrabackup package (openSUSE) doesn't contain a program called "xtrabackup_51" anymore. In the next step I changed your script
from:
$INNOBACKUPEX_COMMAND --apply-log --ibbackup=xtrabackup_51 $DESTINATION &>> $LOG_FILE || fail
To:
$INNOBACKUPEX_COMMAND --apply-log $DESTINATION &>> $LOG_FILE || fail
After this change the restore prodedure works like expected.
The versions:
mysql --version
mysql Ver 15.1 Distrib 10.1.5-MariaDB, for Linux (i686) using EditLine wrapper
xtrabackup --version
xtrabackup version 2.2.11 based on MySQL server 5.6.24 Linux (i686) (revision id: )
Would it be a good idea to check the xtrabackup version inside your script and modify the restore call? Thanks in advance.
...Rolf
I suggest an additional parameter "SOCKET" for the config file (.xtrabackup.config
) defaults to
/tmp/mysql.sock
. The reason is the following innobackupex's error:
Failed to connect to MySQL server: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (2).
My actual socket is /var/run/mysql/mysql.sock
.
Loading configuration from /root/.duplicity.config.
Command line error: Expected 2 args, got 0
Enter 'duplicity --help' for help screen.
basically its running this:
/usr/bin/nice -n 15 /usr/bin/ionice -c2 -n7 /usr/bin/duplicity
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.