Archive for October, 2008

Quick and Easy Way to Backup Linux Directories to Another Server

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

If you want to backup all directories under /home directory on server A to another server (server B), use the following script for automated batch backup:


#!/bin/bash

cd /home
for dir in $( ls )
do
if [ -d "$dir" ]; then
#echo $dir
tar czvf /disk2/$dir.tar.gz $dir
scp -P 22 /disk2/$dir.tar.gz backup@serverB.com:/backup
rm -rf /disk2/$dir.tar.gz
fi
done

You need to have a /disk2 directory for temporary tar.gz files.

You should create a public-private key pairs on server A and copy public key to server B, so you don’t need to enter password for automated backup (cron job).

Popularity: 1%

Comments

Disable WordPress Post Revisions Tracking

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

Find wp-config.php file in your blog root directory, and add this line:

define(’WP_POST_REVISIONS’, false);

Popularity: 1%

Comments

WordPress with Apache ModSecurity: “Method Not Implemented POST to /wp-admin/post.php not supported.”

No GoodNeed ImprovementOKGoodExcellent (No Ratings Yet)
Loading ... Loading ...

If you have Apache ModSecurity installed and try to edit your blog, you may
get this error:
“Method Not Implemented  POST to /wp-admin/post.php not
supported.”

Your apache error log, e.g., /var/log/httpd/white_board_ssl_error_log,
may have a line like this:
ModSecurity: Access denied with code 404 (phase 4).

To fix it, open your http virtual host file add this line:

SecRuleInheritance Off

e.g.,

<Directory
“/home/xxx/webapps”>

SecRuleInheritance Off

</Directory>

Popularity: 1%

Comments

« Previous Next »