From b7cd03a4b92ceab2f64c49ce5bd3f7a503c0d675 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Mar 2025 11:15:42 +0000 Subject: [PATCH] Add daily email for 2025-03-14 Static websites are easy to backup --- source/_daily_emails/2025-03-14.md | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 source/_daily_emails/2025-03-14.md diff --git a/source/_daily_emails/2025-03-14.md b/source/_daily_emails/2025-03-14.md new file mode 100644 index 000000000..a1eed8c81 --- /dev/null +++ b/source/_daily_emails/2025-03-14.md @@ -0,0 +1,31 @@ +--- +title: Static websites are easy to backup +date: 2025-03-14 +permalink: daily/2025/03/14/backup +tags: + - software-development + - static-websites + - static-site-generators + - sculpin +cta: ~ +snippet: | + Static websites are easy to backup and restore. +draft: true +--- + +As well as being [easy to build][0] and [simple to deploy][1], 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. + +[0]: {{site.url}}/daily/2025/03/12/easy +[1]: {{site.url}}/daily/2025/03/13/deploy