Linux online backup

Backing up your data is an essential procedure for your business safety! When talking Linux online backups, creating backups of your data and sending them to a safe location is a pretty straightforward task. Lets analyze some of the tasks that can be done only by the use of a secure command shell: 1. Creating a backup for your files - this simple tutorial from DebianHelp shows how you can create a tar backup of your files, which can include one or more directories and files 2. Creating ...

Migrating your IMAP mail? Here’s how!

For those of you who are changing their IMAP email account to a different server, there is a very nice utility called imapsync. The utility is actually written in PERL so it can run on any number of hosts that support PERL scripting, and while it has many config options, here is the actual command we used to transfer an email account from our server to Google Apps Mail account(GMail is the same) from a Linux box: The command imapsync \ --host1 thinkovi.com --user1 email@thinkovi.com --pa...

Redirecting url with a rewrite rule

Lets suppose you have made some changes to your website and you want to redirect some pages to their new url format, this .htaccess rewrite rule might come in handy: RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)subpage1/subpage2/mypage.html$ RewriteCond %{QUERY_STRING} Itemid=91&page=mypage$ RewriteRule ^(.*)$ http://mynewurl.com/index.php?mypage=new What the above condition does is redirect /subpage1/subpage2/mypage.html?Itemid=91&page=mypage url to http://mynewurl.com/index.ph...

Recovering from disk failures

As you might know, disk drives, specially in high usage areas like hosting enviroments, have a tendency of crashing from time to time. Most crashes you will encounter are related to bad blocks on your hard drive which in some cases will stop your operating system from booting, leaving your server at a stop. There are several utilities which can help you detect and fix the bad blocks at a software level, like the FSCK(file system check) available for Linux, or CHKDSK and SCANDISK for Windo...

Down and dirty with SquirrelMail

I have to admit, the gmail and yahoo new email interfaces are great, if you don't mind the advertising, and very easy to use, however i have been using for a long time SquirrelMail to access the email directly on my server! While the interface that comes with the cpanel installation is very basic, there is one thing i would have liked to have, like in Yahoo, when you get an email, the page title automatically changes with the number of unread emails! Now, squirrelmail already have ...