Mike’s Blog

Backup to Gmail

Filed under: Linux, Mac by Mike around lunchtime on Thu, Mar 23, 2006

I have been looking around for a good way to back my data up to a remote server, and since switching over to my Mac this only got harder. Everything that I have found still had problems with the 10Mb gmail attachment limit. Well again with a little help from Ken, and a script that he had for creating backups and emailing them to gmail. In that script it was using uuencode to encode the attachment and insert it as the body of the email. It also didn’t split up anything over 10Mb. His script did however do a mySQL dump to a tarred bzip file, as well as tar and bzip whatever directory you wanted. Now I was playing around with splittingup the huge bzip file that I ended up with (it was about 300Mb).

I had tried using tar to split the files up but then I needed to know how many pieces there were going to be and pump in the filenames. That was too much work. Another avenue was split, but there was no encryption or protection on the files. Then from my experiences with torrents, I started looking into rar. This seemed promising. It would split up the file into pieces of a size of my choosing and it could be encrypted with a password.

Now to deal with the emailing issues. Using uuencode was ok but it was a pain if you had to get that data back for any reason. While still looking for a solution to this issue we had stubmled across somebody using mutt to send mail for backups. After looking into the command line syntax of mutt we finally came up with a good way of sending the emails with a decent subject line, and with the rar file as an attachment.

Now this isn’t foolproof and there is no error checking going on so if something fails, oops. Another issue is that you end up with a bunch of emails on gmail that need to manually be downloaded. you also need to manually go into gmail and delete the backups every once and a while so that you don’t fill up your gmail account.

Click here to view and download the script

Gallery2 Movie Thumbnails with Ffmpeg on OSX Tiger

Filed under: Mac by Mike around lunchtime on Fri, Dec 9, 2005

Ok so now I have ffmpeg up and running and I have installed and configured the module in gallery2 but I still do not get thumbnails for my movies. Well to make a long story short and so that you don’t waste as mush time as I have here is the fix.

Open the FfmpegToolkit.class file that is located in the in …\gallery2\modules\ffmpeg\classes\ and edit line 99.

Change singlejpeg to mjpeg.

Enjoy your movie thumbnails in Gallery 2

Loading ffmpeg on OSX Tiger

Filed under: Mac by Mike around lunchtime on

I have finally managed to get ffmpeg to install on my new mac mini. I had tried using darwinports to do the install but it crashed and burned every time. so then I tried to compile from source. Again crash and burn. so after much searching I found some help here. It seems that the cvs download that I am using is configured to run on 10.1 not 10.4. Well here is the trick to get around this and install ffmpeg.

setenv MACOSX_DEPLOYMENT_TARGET 10.4

That’s it once I changed my shell to tcsh and entered the line above make worked.

My new Mac Mini

Filed under: Mac by Mike around lunchtime on
Mac Mini

If you are viewing this site then that means that I have gotten my new Mac Mini up and running. I purchased the Mac Mini to be my new web server, thus retiring my Dell box on which I was running Whitebox Linux. This is my first Mac and so far I am very impressed. The two main differences between my old box and the new mini are size and noise. The Mac Mini isn’t much larger than my router and for the most part makes no noise.

Mac Mini Specs:
1.42GHz PowerPC G4
512MB DDR333 SDRAM
ATI Radeon 9200
32MB DDR video memory
80GB Ultra ATA hard drive
Combo drive (DVD/CD-RW)
DVI or VGA video output
Built-in AirPort Extreme and Bluetooth