What I Watched Tonight #21 (New TV Series)
Blue Mountain State. About College football players. Funny new TV Series with a lot of things you normally do not see broadcasted in the US ;-) (nice to have such channels). Some actors previously acted in Smallville.
Conceptronic YuiXX @ Intel booth CES 2010 Las Vegas
3 images I just received from Las Vegas showing the YuiXX at the booth of Intel . A lot of people attended the CES 2010 and got info about the YuiXX and what it can do.
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/clientscd /$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`.txtelse 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.
Weer een TV serie die gaat eindigen: NIP TUCK
Na een korte seizoen 6 (10 afleveringen) werd er ‘ineens’ na de feestdagen begonnen met aflevering 11 van seizoen 6, maar wat overal gezien wordt als de eerste aflevering van het laatste 7de seizoen.
Jammer .. Jammer Jammer .. maar goed 7 seizoenen plastische chirugie is wel voldoende en Sean en Christian hoeven niet te vervallen in ‘onmogelijke’ dingen (want een aantal flinke messteken in je rug hebben, bloed uit je mond en het dan nog overleven en een aantal afleveringen later er niets meer aan over houden is natuurlijk al onwaarschijnlijk genoeg … ).
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 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`/ >> $LOGSecho $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 ;-)
Scripting Help wanted: S3cmd & Backup
I am a newbie in bin/bash scripting so help is appreciated
I am using s3cmd with Amazons S3 service
what I want is to copy per day/week/month some backup files. this is working. My files are copied to:
s3://bucketname/[folder], where folder = date (04012010 as example (date +%d%m&Y)
Listing with s3cmd shows indeed the uploaded folders
python s3cmd ls s3://bucketname
DIR s3://bucketname/03012010/
DIR s3://bucketname/04012010/
the script as far is this:
#!/bin/sh
V_DATA=/var/lib/psa/dumps
V_LOGS=”/var/lib/psa/backupscript/log`date +_%d%m`.log”
echo “Starting sync…”
python s3cmd sync –progress -v $V_DATA/ s3://bucketname/`date +%d%m%Y`/ >> $V_LOGSnote: –progress -v is optional to see in shell what is happening
my knowledge is too less to grab the ls content, count the last x days/weeks (and keep the last x days/weeks *as example*) and remove the oldest folder through the simple command:
python s3cmd del s3://lendhosting/[03012010]/*
File s3://bucketname/test deleted
ANY ANY help is really appreciated!
Amazon S3 – Backup
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).
2010
Zo, de server heeft zijn eerste updates voor dit jaar gehad en we zijn weer een beetje bijgewerkt. PHP naar 5.2.12, MySQL naar 5.089 en wat al niet meer.
Lekker als dan alles ook nog een beetje blijft werken zoals je graag wil. En nu afblijven met de vingers ;-)

Again a Pilot I watched last week and this week episode 2. no idea what to think about this tv series. not really much action or humor but just a ...
Series like: Burn Notice had a seasons Finale, Nip Tuck got cancelled aka ended. Above TV series is a new one although the pilot was already ordered in 2008. So ...








