Hi, Leo. Although I don’t have a website, a cousin of mine has one dedicated
to the family genealogy on a free hosting site. They gave her all the
facilities she wanted to upload multiple gigabytes of thousands of files, but
the site kept crashing. When she berated them for the lack of advertised 24/7
support, they just wiped her site. My question is: is there a way to backup a
complete website of one’s own to a drive that will enable something like this
to be uploaded elsewhere? For example, another website? Could it be as simple
as copy and paste?
Backing up a website?
Well, ultimately, the answer is maybe.
I want to start by describing a better approach to this entire problem – and it’s one that obviously I’m very familiar with since it’s what I do for all of the websites that I maintain.
Develop your website locally
I believe that it is very important that you not actually work on the website – on the website. By that I mean, I believe it’s an important approach to website design and maintenance, that you actually work on the files on your own PC. You edit your HTML, you deal with your images, you do whatever it is you do to your website while you are developing it (or when you are making changes to it) on a master copy that you keep on your PC.
Then, when you’re ready to actually make that live – you upload all of the files (or all of the files that have changed) to the actual web server.
That way, you actually have a master copy of everything on your PC. You can upload it to this server or that server or do whatever else you might want to do with it (including of course, keeping backup copies for your records.)
The website is automatically backed up
So, that is the best approach by far. I have to say, this is coming now after years and years of web development experience. That is the best approach, by far, to making sure that not only is your website backed up, but you have all of the information necessary to recreate it should your web host go away.
Again, I’ll underscore this by saying “in theory.” I’ve never (fortunately) had to test this out. “In theory,” I have on my laptop everything I need to recreate Ask Leo! from scratch on a new web host. All of the questions, all of the comments, all of the everything that I would need.
It would take some time (and some scrambling) to make it happen. But the idea is that I would not lose anything if my web server was completely destroyed – other than a couple of days to put it all back together somewhere else. That is a wonderful place to be in; that’s a sense of security that you really, really want to have.
So, if you aren’t there now (in other words you have a website on a web server and it’s currently only on that web server), then I strongly suggest you start backing it up and backing it up right now.
Backing up a website
There are two ways to do that.
One is to use the backup facilities provided by your web hosting company. This will vary dramatically based on what company you’re with; what services they provide.
Many of them will in fact provide a fairly robust backup solution that will allow you to (for example) keep the last five days of your website available as a backup should you need it. In addition to my own ability to recreate Ask Leo! from scratch, my web server is backed up nightly. That backup is kept for a minimum of a week. So I can, if something were to go wrong today, restore the server to an image that was taken yesterday.
Very much like taking an image backup of your PC. You’d be doing the same thing to your website.
But like I said, that depends dramatically on the facilities that are offered by your web hosting company.
FTP the files locally
The other approach (that should be completely within your control) is an FTP program. If you upload and download to your web server using FTP, then it’s very simple to get an FTP program going.
Use something like Filezilla or CuteFTP or several others. Open that up and yes, do a copy/paste from the FTP connection to your website down to your PC.
Now, depending on how big your site is (you indicated this one was multi-gigabytes) and how fast your internet connection is – that could take quite a bit of time.
That’s why the incremental solution of keeping everything on your PC to begin with and only uploading things as needed as they’ve changed, turns out to be a very effective and efficient way to keep your site backed up. You’re never having to download the whole thing all at once.
But if you’re not there, the best way (and in fact, the only way) to really get there and get what you know is a true backup of your site is to connect up with your FTP program and download the whole thing to a folder on your machine. Then back that up using your own PC’s backup programs.
(Transcript lightly edited for readability.)
Next from Answercast 79 – Can I create a backup image of Linux using Macrium or Acronis?