RFC: Plesk to Amazon S3 backup part 2

#!/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.

RFC: Plesk backup to Amazon S3 – it works!

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

YuiXX: Widgets ….

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

WOW… server activiteit

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.

Saturday

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 ..