Shell Script: Opera Auto Backup

July 18, 2008 | Technical Stuffs | , , , , ,

I’m using Opera 9.5 on my machine with Zenwalk Linux for the operating system. Sometimes an error is occuring on Zenwalk when I compiling source code etc and I have to force shutdown my machine. If it happens when Opera is performing connection to mail server or checking for RSS updates, big chance that there will be a crash and destroy all my mail account and RSS feeds.

So I wrote a simple shell script to perform backup Opera’s files everytime I start my machine. I save this file as opera-backup.sh.

#!/bin/sh
SOURCE="/home/sandal/.opera"
TARGET="/home/sandal/.backup"
FILE=`date +%Y-%m-%d-%H-%M`
tar cfzP $TARGET/$FILE.tgz $SOURCE;

Then I add this shell script into Autostarted Applications (XFCE Menu – Settings – Autostarted Applications) so everytime I start my machine it will backup my Opera files. Whenever Opera crashes again, I can simply restore it from backup.

And by the way, Opera has released Opera Mobile 9.5 Beta, currently for Windows Mobile version.

No comment

This post has no comments, you can be the first!

 

Leave a comment

Allowed tags are: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


 



Switch to our mobile site