<p>As well as being <a href="/daily/2025/03/12/easy">easy to build</a> and <a href="/daily/2025/03/13/deploy">simple to deploy</a>, static websites are easy to backup and, if needed, restore.</p>
<p>I backup several static websites from my server using rsync - the same command I use to deploy them.</p>
<p>rsync is fast as it only downloads files that have changed, so backing up several websites only takes a few seconds.</p>
<p>There are are no databases to worry about - all I need to do is backup the static files themselves.</p>
<p>Running the backups is also easy.</p>
<p>I have a scheduled cron job that downloads everything from the <code>/var/www/vhosts</code> directory on my server and creates a local copy.</p>
<p>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.</p>
<p>As well as being <a href="/daily/2025/03/12/easy">easy to build</a> and <a href="/daily/2025/03/13/deploy">simple to deploy</a>, static websites are easy to backup and, if needed, restore.</p>
<p>I backup several static websites from my server using rsync - the same command I use to deploy them.</p>
<p>rsync is fast as it only downloads files that have changed, so backing up several websites only takes a few seconds.</p>
<p>There are are no databases to worry about - all I need to do is backup the static files themselves.</p>
<p>Running the backups is also easy.</p>
<p>I have a scheduled cron job that downloads everything from the <code>/var/www/vhosts</code> directory on my server and creates a local copy.</p>
<p>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.</p>