You will get one of these:
Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of undefined(…)
ReactCompositeComponent.js:870 Uncaught TypeError: Cannot read property 'displayName' of undefined
if you try to:
STAMP=`date +%Y%m%d%H%M` | |
echo "Iniciando backup @ $STAMP" | |
mkdir -p /var/backups/$STAMP | |
LAST_DIR=`ls /var/backups/inc | sort -n | tail -1` | |
xtrabackup --use-memory=1G --backup --target-dir=/var/backups/inc/$STAMP --incremental-basedir=/var/backups/inc/$LAST_DIR --user=root --password=<root-password> | |
echo "Fin backup @ $STAMP" |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer