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


Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable{mso-style-name:"Table Normal";mso-tstyle-rowband-size:0;mso-tstyle-colband-size:0;mso-style-noshow:yes;mso-style-parent:"";mso-padding-alt:0in When starting a new work at home business it is very easy to become consumed by it. We spend so much time trying to get the business up and running that we may end up becoming burned out and lose our motivation. There is so much to learn and


Here's an easy way to backup your web site's files and database (worth thousands of dollars, no doubt) that costs $0 to learn and perform. It only takes seven easy steps.You don't need to know a lot about how to use Unix or how to use databases like mySQL. The only real tool you need is a telnet client. Also, you need to know a few commands which I'll show you now. (You could even write the commands I'm about to give you on a cheatsheet.)STEP 1: CONNECT & GET IN THE RIGHT FOLDERThe web host you're trying to back up needs to allow shell access (most do these days).If you have a Windows computer, download a program called "PuTTY" which you can use to login in your web host's shell. Search for "putty ssh" on Google or get it here: http:/ he.earth.li/~sgtatham/putty/latest/x86/putty.exeOpen up PuTTY and at the top type in your hostname (your web site address without the http or www, just "yourname.com"). Your web host either uses SSH or telnet, first try logging in using SSH and if it won't connect try it using Telnet. Click the "Open" button at the bottom to connect.When it connects you will be asked for your account's username, and after you enter that, it will ask for your password. If these both take, you'll see a command prompt of sorts. What you have to do is browse to the document root, depending on your host it's usually a folder like "public_html" or "wwwroot".If the wwwroot or public_html folder has more folders inside of it, in the form of yourdomain.com, don't browse into them yet, just stay in the folder you're in.Browsing in the Unix command prompt is just like DOS, to view a folder type "dir" or "ls", and to go into a certain folder type "cd foldername". If you messed up you can type "cd .." to move up one level.STEP 2: BACK-UP THE DATABASEThe first step if you're backing up a site is to dump your mySQL database. To do this obviously you need the mySQL username and password you want to back up. If your mySQL username is "myuser" and the mySQL password is "mypassword", you'd type:mysqldump -umyuser -pmypassword -A > dump.sqlmysqldump is the program we run to dump the database into a file, then we type "-u" followed by the username (no spaces) and "-p" followed by the password (also no spaces). The uppercase "-A" tells the program we want to dump every database this user has access to. It MUST be an uppercase A.The ">" afterwards says we want to put this program's output into a file (otherwise it would show up on the screen) and "dump.sql" is the name of the file we're going to dump to.This may take a while depending on the size of your database. Be patient. Once you have a command prompt again, it's done.If you don't have root on your server, it may show databases you don't have access to. What you'll have to do here is "force" mysqldump to keep doing the backups even if it gets error messages. The flag for "force" is "-f".mysqldump -umyuser -pmypassword -Af > dump.sqlSTEP 3: BACK-UP YOUR FILESNow you can put everything into one big file, which you can easily move over to the new host in one go, instead of one at a time. Unix doesn't let you create Zip files, but you can create a TAR (Tape Archive) which just rolls a bunch of files together without any sort of compression.To create your TAR archive, type:tar -cvf dump.tar *The "-c" tells the program to create a new TAR archive, the "v" following right after says to be verbose, in other words, give us the name of every file that's being added to the archive. "f: means we're saving this to a file, as opposed to showing it on the screen (you'd just see junk)."dump.tar" is the name of the file we want to save into, and the "*" 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 to the 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 to the next host. There's a way we can do this without you having to download the whole thing, and re-upload it.STEP 4: ARRANGE YOUR FILE FOR PICKUPRemember how I said when you were in "wwwroot" or "public_html" not to browse into the 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.comThis moves "dump.tar" into the folder "yourdomain.com".STEP 5: MOVE THE NEW FILE OVERLogin 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 saves the file you want to load.If your old host was at yourdomain.com, you'd just type:wget http://www.yourdomain.com/dump.tarThis 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 FILEOnce you have the file, you use that same TAR program to decompress it. Type:tar -xvf test.tarThe "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 DATABASEBefore you can put the mySQL dump back into the database, you have to go into this new web host's control panel and create blank databases with the 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 find the dump.sql that was unpacked with all of the other files.Instead of using the program "mysqldump" to dump the files, we use the program "mysql" which let's us put commands into the database. That's basically what a dump is, a file full of commands that, when run, will recreate the old database exactly.This time we don't type in the database name right away. To get into mySQL from the command prompt, type:mysql -umyuser -pmypasswordWhere "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.sqlThis says, open up the 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 in the shell.You've just moved one site (or a bunch of sites) over from one host to another in about 5 minutes. Article Tags: Command Prompt, Mysql Username

Save,100,Minutes,Backing,Your,

DIY

Soil testing as important as oil changes are for engines

When you have a vehicle that you are driving a lot, you know that oil changes are something that you need to do on a regular basis to keep your vehicle in good condition. This is the same as soil testing. Soil testing ensures that your soil ...

DIY

Foam bitumen - Sustainable Eco-friendly Roads

Dont you think it will be great if we have eco-friendly roads that will be sustainable and durable as well? If there are roads that are not harming the environment anymore? This isnt just something that is for the future. There are countrie ...

DIY

Soil Testing: It’s all about that soil

Soil testing. The success of your harvest is all about the quality of the soil. And, the only way to ensure that you have the best soil, is to know what your soil needs.Many dont think that soil testing is needed. They are only adding nutrie ...

DIY

Mobile Work and Aluminum Platforms That Fit Your Needs

There are many domestic, trade and industrial applications where an extension ladder is the best and safest choice. Although many people try to make do with tall stepladders, most don't know it's hazardous to stand on the top work platform o ...

DIY

Truck Access Platforms That suitable for you

Looking to plan and specialist a few kinds of platforms that give your workers safe access to single or multiple hatches on an assortment of Tank Trucks. In the event that your administrators are as of now getting to the highest points of tr ...

DIY

How to Choose a Custom T-shirt Printing Company?

Be it a family event, a noble cause, company event, or personal interest, wearing custom t-shirts gives importance to it. The fame of personalized shirts is soaring high with this. More and more men and women are wearing custom shirts while ...

DIY

Moving Jurney By Interm Packers and Movers

They perceive the ins and outs of transferring so it's a protected option to allow them to deal with your whole belongings as a result of they'll do it proper and do it with care. When you might be in a predicament corresponding to not havin ...

DIY

Use a Vacuum Excavation for an Unearthing Project

You may very well get yourself that you have to utilise a vacuum excavation for an uncovering venture. This can be anything from disposing of a channel that is blocked or to penetrate a gap in the ground without harming the encompassing zone ...

DIY

Detailed Information about Non-Destructive Digging

At the point when you consider digging a gap in the ground, the principal thing that rings a bell is this ordinarily winds up a total wreckage around the gap.Be that as it may, there is one technique called non-destructive digging. This is t ...

DIY

A Complete Guide to buying a Vacuum Truck

Buying a vacuum truck are something that you should consider on the off chance that you are searching for another business opportunity. There are a few advantages to having this sort of business in the event that you have a completely prepar ...

DIY

Best Methods of Underground Cable Detection!

While we are continually fabricating and remolding properties, unearthing is unavoidable and can be attempted for an assortment of reason. What we are going to discover right now while playing out an exhuming, you should discover any undergr ...

DIY

Vacuum Trucks Can Deal with Exact Unearthing Needs!

Some intriguing data about vacuum trucks. That it will have the option to give in your precise excavation and drilling needs. You may imagine that those enormous trucks won't have the option to penetrate precisely, without harming anything a ...

DIY

Utility Locators - Locating Underground Cable

There are numerous reasons why it is imperative to locate underground cables. Also, if the Cables can't be found effectively, the fiasco will be immense and can be destroying.This is the reason you have to ensure that you know however much a ...

DIY

Important Information about Hydro Excavation

Hydro excavation is the way toward expelling or moving soil with pressurized water. An air movement or vacuum is then used to move the dirt or trash to a garbage tank. This takes into account a non-damaging and progressively exact approach t ...

DIY

Foam Bitumen - Lab Tests for Pavement Construction

Foam Bitumen. Something that you probably won't have found out about. All in all, for what reason would it be advisable for you to consider what the different lab tests on bitumen for asphalt development are? But on the off chance that you a ...

DIY

Soil Testing & analysing Is Worth the Effort

There's nothing of the sort as a free lunch, even in the nursery. Contingent upon your soil's local ripeness and what you develop, your plants may perform for quite a long time without requiring extra manure. Be that as it may, at some point ...

DIY

Soil Testing For Construction

Soil testing is a significant piece of building and street development. Truth be told, no development task can continue without first ensuring the soil can bolster the heap. Subsequently, the reason for soil testing for construction is to de ...

DIY

Soil Testing Services for Construction Projects

Regardless of whether you are building your fantasy home, making an expansion to your current home or building up a business property, there is one thing that is of most extreme significance, soil testing. There are various building consulta ...

DIY

Property Insurance

Property is Peoples HopeIt is not wrong to say that property is a hope and main aim of every person. People put all their efforts and then purchase some property for time ahead reliability and safety. This property is result of a long term s ...