Forum Moderators: phranque
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.
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.