Save $100 in 5 Minutes Backing Up Your Web Site?

Written by Robert Plank


Continued from page 1

"dump.tar" isrepparttar name ofrepparttar 118685 file we want to save into, and repparttar 118686 "*" means we want to put everything into this TAR archive -- files, folders, everything.

You may get some sort of warning about not adding dump.tar torepparttar 118687 archive, that's no big deal because we don't want this file to add itself.

Your files are backed up. At this point it's time to move things over torepparttar 118688 next host. There's a way we can do this without you having to downloadrepparttar 118689 whole thing, and re-upload it.

STEP 4: ARRANGE YOUR FILE FOR PICKUP

Remember how I said when you were in "wwwroot" or "public_html" not to browse intorepparttar 118690 folder containing a domain name? Well now it's time to move that dump over into one of them so it can be picked up.

If one of your folders is, say, yourdomain.com, type:

mv dump.tar yourdomain.com

This moves "dump.tar" intorepparttar 118691 folder "yourdomain.com".

STEP 5: MOVE THE NEW FILE OVER

Login to your new host. Browse to its "wwwroot" or "public_html" folder.

Most hosts include a program called "wget" which works sort of like a browser in that you give it a URL to pick-up that it loads. Only this browser also savesrepparttar 118692 file you want to load.

If your old host was at yourdomain.com, you'd just type:

wget http://www.yourdomain.com/dump.tar

This will load that URL and save it as "dump.tar". You'll probably see some sort of progress indicator as it goes.

STEP 6: DECOMPRESSING THE FILE

Once you haverepparttar 118693 file, you use that same TAR program to decompress it. Type:

tar -xvf test.tar

The "v" and "f" are still there, but instead of "c" (create) we use "x" (extract). This will unpack each file and let us know which one it's working on.

STEP 7: RESTORING THE MYSQL DATABASE

Before you can putrepparttar 118694 mySQL dump back intorepparttar 118695 database, you have to go into this new web host's control panel and create blank databases withrepparttar 118696 same names as you had before.

You also have to create a mySQL user and make sure that user has access to all those databases you've created.

Once that's done findrepparttar 118697 dump.sql that was unpacked with all ofrepparttar 118698 other files.

Instead of usingrepparttar 118699 program "mysqldump" to dumprepparttar 118700 files, we userepparttar 118701 program "mysql" which let's us put commands into repparttar 118702 database. That's basically what a dump is, a file full of commands that, when run, will recreaterepparttar 118703 old database exactly.

This time we don't type inrepparttar 118704 database name right away. To get into mySQL fromrepparttar 118705 command prompt, type:

mysql -umyuser -pmypassword

Where "myuser" and "mypassword" are your mySQL username and password. Once you're in you'll get kind of a weird looking prompt. All you have to do at this point is type:

source dump.sql

This says, open uprepparttar 118706 file dump.sql, read through it and do whatever it says to do in that file. You will see a bunch of lines telling you a command has been entered (0 Rows Affected, 1 Rows Affected, something like that).

If everything goes smoothly, type "quit" and you will be back inrepparttar 118707 shell.

You've just moved one site (or a bunch of sites) over from one host to another in about 5 minutes.

Article by Robert Plank

Want to pick up more useful PHP and programming skills, even if you aren't "the programming type"? Subscribe here -- http://jumpx.com/newsletter


Pop-ups And Pop-up Blockers

Written by Jeff Colburn


Continued from page 1

The pop-ups I've been talking about arerepparttar involuntary ones. The visitor has no control over them. But what about voluntary pop-ups? You know, you click on a small picture and a window opens up with a larger image of that picture. Or you click on a word or service and a window opens up explainingrepparttar 118684 word or service. Now, you're dealing with something that visitors absolutely love. You have given them backrepparttar 118685 control they want, and removedrepparttar 118686 annoyance they hate. It makes using your site easy, your site is more informative and visitors will stay longer.

When designing these voluntary pop-up windows be sure to make them a convenient size, so they don't take overrepparttar 118687 whole screen, and make them easy to close. You can have text, or a button, inrepparttar 118688 window that lets people close it, or they can userepparttar 118689 X onrepparttar 118690 top right ofrepparttar 118691 window. Again, you want to give visitors easy control over how they interact with your site.

Replace your pop-ups, or planned pop-ups, with page design that will guide your visitors to where you want them to go. Giving your visitors a pleasant experience on your site is an incentive to stay longer and come back often, which is what you want.

http://www.CreativeCauldron.com Jeff Colburn is a website designer and writer. His goal is to makerepparttar 118692 process of creating or updating your website easy and simple for you, while creating a website that meets all your needs and expectations. Jeff can also create all ofrepparttar 118693 copy for your website.

To see a sample of Jeff's work go to The Creative Cauldron. It's an award winning site filled with information for writers, photographers, artists and other creative people.

Copyright 2004 Jeff Colburn

None


    <Back to Page 1
 
ImproveHomeLife.com © 2005
Terms of Use