WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Wir nutzen WB in der neusten Version als Community Software
Es gibt ein Stück Code oder Droplet um sich die zuletzt geänderten Seiten anzeigen zu lassen.Datum, Seite, wer hat geändertAber was geändert wurde würde nicht dabei stehen.
Da müsste jemand erst was programmieren
Da wir nun mehrere User sind die im Admin Bereich Rechte haben kommt es manchmal vor das es welche gibt die nicht immer wissen was sie da tun.
Mal davon abgesehen, das ich kein System kenne, das mir solche Informationen in komplexer und aussagekräftiger Form anbietet
Dann schau Dir mal das plugin "Simple History" von Pär Thernström für Wordpress
Mir scheint Martins Variante die "einfachste".Das würde ich gern mal in Aktion sehen.
#!/bin/bash# example for a cronjob to dump database and inform admin about relevant changes## to make the cronjob run correctly and inform you about the output, # make sure to set up the values for $SHELL, $MAILTO, and $PATH in the crontab## make sure you have mysqldump installed and passwordless access configured# for example by placing a .my.cnf file in the $HOME of the user who runs this script,# adjust the values accordingly## cat .my.cnf# [client]# host = localhost# user = root# password = y0ur_5up3r_secur3_passw0rd## define a location for the dumps, protect this directory, e.g. via .htaccess# or adjust the unix permissions such that the web server user can't go inBACKUPDIR=$HOME/backups# the database nameDATABASE_NAME=cmsTODAY=$(date +%Y-%m-%d)cd $BACKUPDIRmysqldump --databases $DATABASE_NAME > current.sql# copy the current dumpcp -a current.sql ${DATABASE_NAME}-${TODAY}.sqlgzip ${DATABASE_NAME}-${TODAY}.sql# in case the last.sql was not there, create an empty filetouch last.sql# create the output and filter it - you might want to grep out some more noise.# Maybe the IP address from where a user is logged in causes some trouble# the sed is to make the output more human readable if you like...diff -u0 last.sql current.sql \ | grep -v dbsessions \ | sed 's/^+/ADDED CONTENT:\n/;s/^-/REMOVED CONTENT:\n/;s/,/,\n/g'# now move the current one to the last onemv current.sql last.sql# if you want to remove old snapshots you might want to keep a copy per month# for the past year and one per year for the time even more back. You could do# something like:## MONTH=$(date +%Y-%m)# cp -a ${DATABASE_NAME}-${TODAY}.sql.gz ${DATABASE_NAME}-${MONTH}.sql.gz# find -maxdepth 1 -name ${DATABASE_NAME}-'*-*-*.sql.gz' -mtime +60 -delete## cp -a ${DATABASE_NAME}-${TODAY}.sql.gz ${DATABASE_NAME}-${YEAR}.sql.gz# YEAR=$(date +%Y)# find -maxdepth 1 -name ${DATABASE_NAME}-'*-*.sql.gz' -mtime +400 -delete#