Posts Tagged ‘ AM Technology & Systems

Backup your Virtualmin to S3

Hi!

Long time since my last post! I want to say happy new year to everyone who visits my blog and I hope all your wishes come true in this year. I have been very busy with my start-up company the lasts months (I even had to work in my 3 days annual vacation ;) ) so that’s why I didn’t upload any new article. So today I will show you a little script that will upload your Virtualmin backups to S3. I have a customer that have backups larger than 5Gb and I can’t upload them directly to S3 since the limit per file in S3 is 5 Gbs so I used the split command to have 1Gb pieces of the backup and then upload all to S3. To use this script you have to configure your Virtualmin to backup to a local folder (In this case /bkps) and then have a daily script that can be placed in /etc/cron.daily for example with the following content:

#!/bin/bash

# Clean backup folder for old files
echo “Cleaning old backups…”
/usr/bin/find /bkps -type f -mtime +5 -print
/usr/bin/find /bkps -type f -mtime +5 -exec rm -f {} \;

for bkpfile in `ls -1 /bkps/*.bkp`
do
echo “Generating MD5SUM for the original backup file $bkpfile…”
md5sum $bkpfile >> $bkpfile-md5sums
echo “Splitting backup file $bkpfile…”
split -a 1 -d -b 1073741824 –verbose $bkpfile $bkpfile-part
for splitbkpfile in `ls -1 $bkpfile-part*`
do
echo “Generating MD5SUM for split backup file $splitbkpfile…”
md5sum $splitbkpfile >> $bkpfile-md5sums
done
rm $bkpfile
done

# Upload backups to S3
su -l -s /bin/bash -c “s3cmd –delete-removed -v sync /bkps s3://YOURBUCKET”

As you can see above, my backups are created with the extension .bkp also I have used the s3cmd to have access to S3. The installation of s3cmd is very easy and it haves packages for almost all the Linux distributions.

I hope you enjoy this script and later I will share with you some of my experiences with AWS cloud services for a large project I worked the lasts months including Load Balancing, Auto Scaler, etc. I have created some nice scripts (I think) to make my life with the AWS, so stay tuned! (I promise that you will not have to wait 2 months to have news from me ;) )

Thank you very much for your time.

Cheers!

The best freelance logo design website

Hi!

Some time past since my last post, I was really really busy these days (A lot of work to deliver, working on my own logo design, lot of XEN testing, etc) and I didn’t have time to write some of the things I had in my mind. Some days ago (I think a month ago) I discovered a really cool website where you can post a design project with your requirements and you will get a minimum of 25 designs guaranteed! or you get your money back. This is a lot better than any other freelance website since you see what the designers will offer for you, and not seeing portfolios of work done to other people. This nice website is called CrowdSpring, you can contract a designer for logo design, website design, packaging design, print design, clothing, stationery, etc.

This site is relatively new website, they started in 2008 but they have a lot of designers and projects, here are some numbers as the time I write this post:

38,248 creatives

153 open projects

466,329 entries to date

5,678 projects to date

82 avg. entries per project

Now talking about my project, I needed a logo for my company AM Technology & Systems. I did some website and graphic design in the past (For personal and small projects) but I wasn’t good doing it and I didn’t have time to play with design so I prefer to give this job to a professional so I posted a project in CrowdSpring:

http://www.crowdspring.com/projects/graphic_design/logo/am_technology_systems_logo_design

In 14 days I got 120 different logo designs! I was astonished! Now was time to select one, I wanted a simple but unique logo preferably something vectorial so I selected my favourites and started a little survey between my friends, family and girlfriend. The winner was a design of RiccoLesmana (An Indonesian designer), I recommend him 100% he was fast delivering proofs and was always open to recommendations.

So you may wonder, WHAT LOGO DID YOU CHOOSE? Well ladies and gentlemen here it is:

Logo1

Logo1

Logo2

Logo2

I just love it :) (I hope you too hahaha)

Well, I hope you find CrowdSpring a useful website as I did and that you get someone to fulfil your design needs.

Thank you very much for visiting and reading.

Cheers!