Translate This Page

About Me

profile_picture_120

Name: Joshua Lyon
Birthday: August 8, 1985
Location: Valley Ranch (Irving), TX
E-mail: josh@boshdirect.com

Related Articles

Content View Hits : 1137394
Tech
Backup site (files) from Shell
Written by Josh Lyon   
Friday, 25 January 2008 07:42

Here's a quick code snippet on how to backup files and restore them from the shell.

To back them up, run the following code:

$ tar -zcvf filename.tar.gz folder/

To backup all files in the directory you are currently in, run:
$ tar -zcvf filename.tar.gz .

Here's a breakout of the parameters:
z - gzip compression
c - compress the files
v - verbose output (lists the files)
f - file

To uncompress the file(s) (eg. unload to server - overwriting files), use the following:
$ tar -zxvf filename.tar.gz

The key difference is the c in the compress command above was replaced with an x for the extract command.

 

 
Upgrade from Joomla 1.5RC4 to Stable
Written by Josh Lyon   
Friday, 25 January 2008 07:46

Upgrading from Joomla 1.5RC4 to Stable (Production) was a breeze. There was no need to make changes to database structure or anything. Simply download the full stable release, upload to my server, and overwrite the files. Here's how I did it from the shell.

Navigate to the proper directory:
$ cd /mysite/

Download (wget) the new compressed file:
$ wget http://joomlacode.org/gf/download/frsrelease/5078/21064/Joomla-1.5.0.tar.gz

Uncompress over old files:
$ tar -zxvf Joomla-1.5.0.tar.gz

Remove the installation directory:
$ rm -fR installation

I then visited the site to check to make sure everything was working. Sure enough, it all worked great! I would highly recommed creating a backup of your site files and database. Here are some links from my site on how to do this from the shell:

Create a MySQL Backup from Shell
Create file/website backup from Shell

 
MySQL backup from Shell
Written by Josh Lyon   
Friday, 25 January 2008 07:09

The following is a short code snippet on how to view which MySQL databases are available for a user, then a command to back them up. This should work on Unix and Linux variants.

To view what databases are available to be backed up, run the following command:
$ mysql -u root -h localhost -p -Bse 'show databases'

To backup each database, run the following command:
$ mysqldump -u root -h localhost -pmypassword databasename | gzip -9 > faqs-db.sql.gz

 
How to Make DS-Syndicate W3C compliant
Written by Josh Lyon   
Wednesday, 23 January 2008 17:56

There was a very small issue with the DS-Syndicate module that broke the W3C Validation compliance. The img tag did not end with a forward slash. To fix this, simply open /modules/mod_ds-syndicate.php and on line 51, column 64 add a / to the end of the <img> tag so the line looks like:

$mod_content .= "<img src="/" . $feed_img . "" alt="feed image"/></a>";

 
<< Start < Prev 11 12 13 14 15 16 17 18 19 Next > End >>

Page 12 of 19