-
Using the CHMOD command effectively
Can’t remember how to calculate which CHMOD command you want to use. Below you will find every possible CHMOD command and the file permissions they will set. Along with a simple explanation, every possible combination is listed below.
The permission mode is computed by adding up the following values for the user, the file group, and for everyone else.
- Read 4 – Allowed to read files
- Write 2 – Allowed to write/modify files
- eXecute1 – Read/write/delete/modify/directory
-
Simple Script to Backup Smaller MYSQL Databases remotely
Here is a simple script you can use to add as a job that you can use to backup smaller remote MYSQL DB’s. This script will take a mysql dump, date it, then add it to an archive (with the date), then the uncompressed file is deleted. It is perfect to use as a daily cronjob. The instructions are specifically for Ubuntu, but it can be easily modified for Unix or even a Windows batch file.