Forum Moderators: phranque

Message Too Old, No Replies

Backing up a web server's hard drive image?

How to save a complete website to backup?

         

Andeveron

4:37 am on Jul 18, 2003 (gmt 0)

10+ Year Member



Is there a way to save a website to a local computer so that it can be used to restore the site if the web server is corrupted, infected by a virus or otherwise unaccessible?

For example, is it possible to image the web server's hard drive on a local hard drive and keep the permissions, structure, database, etc as a backup in case something happens to the web server? This way, we can simply upload the image to a new hard drive if the old one is damaged and have the website up and running without a lot of setup or installation.

I think that a tar file of the server might work but I'm not sure. Thanks in advance for advice and help.

bcc1234

5:06 am on Jul 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are some utilities that do dump and restore by sectors.
You can also use dd to copy partitions.
But I would not do that if I were you.

tar with "p" option seems like the best solution.
Also, if you are backing up directories or files that are likely to change while being tarred, copy them somewhere else first or your tar might get corrupted. cp with a "p" (just as tar) will preserve file permissions.
So just copy your stuff to the backup directory first and then tar it.
Also, if you are using databases, don't back up the database files while the backend is running, instead dump the data and save the output.

Andeveron

11:40 pm on Jul 19, 2003 (gmt 0)

10+ Year Member



Hello, thanks for the valuable information. We never thought we needed to back up one of our sites until it was hit by a scanning virus and we had to reinstall Apache, Interchange, etc from scratch. Now we're backing up every night.