How to automatically backup the local directory that contains both Hugo files and the Git repo?

You need to create yourself a README.md in your repo to remember these steps when in some months you want to recreate the site. The problem is, that neither Git nor Hugo is automatically loading the theme in your theme folder. So you basically have to follow these steps:

git clone https://github.com/sientelo/backup-test
cd backup-test
git submodule init
git submodule update

or, if you want to feel like an expert:

git clone --recurse-submodules https://github.com/sientelo/backup-test

Then it works without errors. (If the test repo should have content then we have a follow up problem - hugo server shows a site, but no content :slight_smile:)

1 Like