Archive for the ‘Weblog’ Category:

Movie test withing WordPress

Written on February 22nd, 2010 by Dennisno shouts

a first test with a movie within WordPress

uhmpfff ..
do not like the embedding ;-(

Full Story » Filed under Weblog Tags:,

Quote of the Day

Written on January 24th, 2010 by Dennisno shouts

In de Mixfreaks mailinglijst worden soms erg leuke quotes de wereld in geslingerd, zo ook over Radio555 en de programmering:

Iemand enig idee trouwens waarom Stenders & Van Inkel als format werd verkozen boven Curry & Van Inkel?

Antwoord van een gevatte Mixfreaker (Thanks Sjon) ..

Misschien omdat zowel Stenders als Van Inkel bij een deelnemend radiostation zitten en Curry alleen in Hoogendijk te ontvangen is?

LOL

Full Story » Filed under Weblog Tags:

Message to Self: New TV Series

Written on January 20th, 2010 by Dennisno shouts

Message to Self: Damages is starting 25 january and do not forget to download Human Target, last one hits episode 2 yesterday. Pilot was promising. Also waiting for Lost season 6 .. what else?

Full Story » Filed under Weblog Tags:

RFC: Plesk to Amazon S3 backup part 2

Written on January 9th, 2010 by Dennisno shouts

#!/bin/sh

CLIENT=client1
OBJECT=domain.nl
BASEDIR=/var/lib/psa/backupscript
BASEDIROBJECT=/var/lib/psa/dumps/.discovered/*_
DATADIR=/var/lib/psa/dumps/resellers/beheer/clients

cd /$BASEDIR
file=”$BASEDIROBJECT$OBJECT”

### bash check if file exists

if [ -f $file ];

### first backup the new stuff

then python s3cmd put -r $DATADIR/$CLIENT/domains/ s3://bucketname/”$CLIENT”_`date +%d%m%Y`/
rm -rf $BASEDIROBJECT$OBJECT
touch “$BASEDIR”/logs/”$CLIENT”_backup-transferred`date +_%d%m%Y`.txt

else echo “nothing to backup”

fi
echo “ready”

So, this is the modified backup script, where I have removed the delete part of the domain, I have created a logfile after ‘successful’ uploading the content, so that with this file you can delete finally the content on the server in another script.
script has not run in crontab yet and I have only adapted it for 1 domain yet. Comments are welcome.

Full Story » Filed under Weblog Tags:, ,

RFC: Plesk backup to Amazon S3 – it works!

Written on January 6th, 2010 by Dennis2 shouts

First thanks to Uli for the first step towards some idea’s and Armijn giving good guidelines how to use some variables together with commands.
cause I am a newbie on bin/bash scripting.. but with lots of testing tonight I was able to backup several ‘clients’ content towards buckets and objects on Amazon S3. Probably this is a first good step towards the usage of a simple script for the backup of your server’s content to Amazon S3

Needed: Python, S3cmd, data and the correct settings

note: this script is not finished yet as I am manually executing it and the removal of data from Amazon S3 is not well tested (it works, but I need to check it during the time the stuff is running.

#!/bin/sh

###################################
### ###
### BACKUP FOR  DOMAIN  ###
### ###
###################################

DOMAIN=put-here-a-client-name

BASEDIR=/var/lib/psa/backupscript

cd /$BASEDIR

# $ENVIRONMENTAL VALUE: use basedir for the backups (note my master reseller is called ‘beheer’)
DATADIR=/var/lib/psa/dumps/resellers/beheer/clients

# $ENVIRONMENTAL VALUE: save logfile
LOGS=”/var/lib/psa/backupscript/log`date +_%d%m`.log”

# $ENVIRONMENTAL VALUE: value to xx days, so keep earlier days, can be used daily and modified after testing
REMOVE=$(python s3cmd ls s3://bucketname | grep `date –date=’14 days ago’ +%d%m%Y` | cut -f 4 -d ‘/’)

# first backup the new stuff
python s3cmd put -r –progress -v $DATADIR/$DOMAIN/domains/ s3://bucketname/”$DOMAIN”_`date +%d%m%Y`/ >> $LOGS

echo $REMOVE date will be deleted

# delete the object older than (xx) days defined
python s3cmd del s3://bucketname/$REMOVE/*

rm -rf $DATADIR/$DOMAIN/domains/*

in this script I first define the environmental variables to make sure you only need to enter the correct path and ‘client’ name
than the content on your server is put into the bucked on S3, Then old backup removed from S3 and the actual backup deleted from your server to safe space.

Note: probably I need to use a ‘sync’ option after the put to make sure all data is correctly put onto the server (kind of validation?) if all is uploaded correctly
there is not an if than else statement, the backup content on server is ALWAYS removed when stuff fails ..

for a first script a nice try .. I know the bucketname could also be a ‘variable’ but did not choose for that (yet).

update 7/01/10

added
BASEDIR=/var/lib/psa/backupscript
cd /$BASEDIR

Otherwise s3cmd cannot work ;-)

Amazon S3 – Backup

Written on January 3rd, 2010 by Dennisno shouts

draft:

I am trying to migrate away from my home server and getting the daily / weekly backups from my various websites of the main webserver onto the Amazon S3 service.

For this I am using a tool s3cmd (Python needed) and a simple bin/bash script. First test from my CH3SNAS showed that python and s3cmd is working, so than the main Linux webserver should do it as well. Great…

Now doing some speed testing for upload / download to measure crontab scheduling … more later when I have more detailed info ..

note: on plesk there is no backup tool where you can ‘remove’ server repository files, a rm -rf will do the job as well (read in forum plesk).

Full Story » Filed under Weblog Tags:,

YuiXX: Widgets ….

Written on December 30th, 2009 by Dennis7 shouts

YuiXX, we count down.

but where did you see that widget system before?:

Some info …..

The YuiXX widget system is strongly related to the existing Yahoo/Intel Widget system.

But …

The existing widget library cannot and will not be used (a lot of content is strongly US related). There will be a new platform for the YuiXX with own applications, widgets and functionalities as written in de latest press-release announcement.

For developers, there will be a SDK available to develop own widgets for your own box, Widgets can be submitted to be put in the official YuiXX library to be used by all owners.

So yes, you could develop a lot of ‘applications / widgets’ (it’s a lot of HTML and Javascripting I am told) .. ;-)

Full Story » Filed under Weblog Tags:,

WOW… server activiteit

Written on December 20th, 2009 by Dennisno shouts

We kunnen zien dat het winter is, mensen thuis zijn en op zoek naar heerlijke recepten voor de kerst ..

ben benieuws of de dip van het avondeten en sport vanavond te zien valt ;-) … Nu ik deze grafiek zie snap ik dat vorig jaar mijn eigen thuis server met maar 1MB upload snelheid een beperkende factor was.

Full Story » Filed under Weblog Tags:

just a test

Written on December 19th, 2009 by Dennisno shouts

embedding is very very easy …, go to the HTML section, enter the URL of some sites supported by WP 2.9 and than hit some text. This youtube video was auto embedded .. woei !

Full Story » Filed under Weblog Tags:,

Saturday

Written on December 19th, 2009 by Dennisno shouts

Vandaag weer teveel gedaan met armpje.. mag niet van dokter. Slijmbeursontsteking. Dus ik voel weer wat meer en daar moet je voorzichting mee zijn. Blijvende schade mogelijk (oei) ..

Op naar Rotterdam … schoonzus bezoeken die in het Erasmus ligt …

En daarna … WordPress update naar 2.9 .. schijnen weer leuke dingen in te zitten ..

Full Story » Filed under Weblog Tags: