Best Way to Backup Cockpit data?

What’s the best way to backup a Cockpit installation?

I tried the backup solution here – but it gives me a 500 error on the latest pull of Cockpit Next:

Is it enough to backup the /storage/ and /config/ folders – and then reinstall them into a fresh clone of cockpit?