Copy folders from one place to another

Had a bit of an afternoon moment today, though an issue with our server setup makes forcing overwrite impossible using the “-f” flag.

This is the command to use.

Read the rest of this entry »

, ,

No Comments

Backup & Restore a cPanel Account via SSH

Performing tasks via SSH is a lot easier most of the time than having to waste time logging in through that big fat clunky web interface and messing around with all the noob friendly half arsed validation procedures, etc…

Here is how to package up and restore a cPanel account from the command line.

Read the rest of this entry »

, , ,

No Comments

Repair corrupted MySQL database from the command line

Corrupted MySQL tables dont happen often, though it can happen to the best of us and they can be a pain to fix.

Read the rest of this entry »

, ,

No Comments

Find all core dump files

Iv seen a few ways to remove core dump files across the net though they all tend to pick up other files such as core.php and core.h and so on, which we shouldn’t really be deleting (useful or not).

Here is a command which will find all core dump files (you know the ones that look like “core.81726″):

Read the rest of this entry »

, , ,

No Comments