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
#!/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 | |
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 |
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 ; |
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 |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /index.php?$1 [L,PT] |
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(); |