sudo xfsdump -l 0 -L "Backup level 0 of /home `date`" -M Full - /home | lzop > /media/oli/Seagate_4TB/Backup/vostro/xfsdump/home-xfsdump-`date +%Y-%m-%d`.lzo
DATE=`date +%Y-%m-%d`
netstat -tulpn
| ob_start(); // collect all outputs in a buffer | |
| /* | |
| put the normal PHP-Code here | |
| if the resulting html code ($sContent) is the same, and so the md5 hash is the same, | |
| it will not be sent so the client once more | |
| because the client already has this html page in the cache, identified by the md5 hash Etag | |
| */ | |
| $sContent = ob_get_contents(); // collect all outputs in a variable | |
| ob_clean(); |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ /index.php?$1 [L,PT] |
| processor : 0 | |
| vendor_id : GenuineIntel | |
| cpu family : 6 | |
| model : 13 | |
| model name : Intel(R) Pentium(R) M processor 1.50GHz | |
| stepping : 6 | |
| microcode : 0x17 | |
| cpu MHz : 600.000 | |
| cache size : 2048 KB | |
| physical id : 0 |
| CREATE USER 'dbbackup'@'localhost' IDENTIFIED BY '***'; | |
| GRANT SELECT , | |
| RELOAD , | |
| FILE , | |
| SUPER , | |
| LOCK TABLES , | |
| SHOW VIEW ON * . * TO 'dbbackup'@'localhost' IDENTIFIED BY '***' | |
| WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; |
| sudo xfsdump -L KW12 -M FullBackup -J - / |lzop > /media/oli/465GB/Backup/Oli/Vostro/Linux-xfsdump-2016-03-26.lzo | |
| ## Explanation: | |
| # sudo xfsdump | |
| # -> start the xfsdump programm with root privileges | |
| # -L KW12 | |
| # -> gives the Backup the label KW12 | |
| # -M FullBackup |
| #!/bin/sh | |
| # from https://lebkowski.name/docker-volumes/ | |
| # remove unused images | |
| docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
| # remove finished containers and their volumes | |
| docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v | |
| CREATE DATABAESE MYNEWDB; | |
| CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
| GRANT ALL PRIVILEGES ON MYNEWDB.* TO 'newuser'@'localhost'; | |
| FLUSH PRIVILEGES; |
| #!/bin/sh | |
| sudo chmod -x /usr/bin/gnome-keyring-daemon |
| -- source: https://blogs.sap.com/2016/10/27/create-tenant-database-sap-hana-express-sap-hana-academy/ | |
| -- create a tenant | |
| CREATE DATABASE TESTDB SYSTEM USER PASSWORD Initial1; | |
| -- add the script server service | |
| ALTER DATABASE TESTDB ADD 'scriptserver' | |
| -- or hit two birds with one stone | |
| CREATE DATABASE TESTDB ADD 'scriptserver' SYSTEM USER PASSWORD Initial1; | |
| -- Tenants by default start automatically, but can be started and stopped manually as well |