Jump to the navigation menu

Static websites are easy to backup

As well as being easy to build and simple to deploy, static websites are easy to backup and, if needed, restore.

I backup several static websites from my server using rsync - the same command I use to deploy them.

rsync is fast as it only downloads files that have changed, so backing up several websites only takes a few seconds.

There are are no databases to worry about - all I need to do is backup the static files themselves.

Running the backups is also easy.

I have a scheduled cron job that downloads everything from the /var/www/vhosts directory on my server and creates a local copy.

If I need to restore from a backup or migrate to a different server, I just run the appropriate rsync command to re-upload them - the same as how I deployed them originally.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an certified Drupal Triple Expert with 18 years of experience, a Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.