The repository holds the world folder as it was at each backup. On the Foundry machine, with Foundry stopped (or at least with the world not launched):
cd /home/foundry/foundrydata/Data/worlds
mv my-campaign my-campaign.broken # keep the current folder
git clone https://github.com/<you>/foundry-world-my-campaign.git my-campaign
# an older state instead of the latest: git -C my-campaign log --oneline, then git -C my-campaign checkout <commit>
rm -rf my-campaign/.git my-campaign/.github # Foundry serves the folder, so do not leave the history in it
chown -R foundry:foundry my-campaign
Start Foundry, or return to setup and launch the world. The service keeps backing the restored world up as before.
An older state
Before the rm -rf line, list the backups and check out the one you want:
git -C my-campaign log --oneline
git -C my-campaign checkout <commit>
From Foundry instead
With releases on, Foundry's Install World with the world's manifest URL is the other way back: the latest backup, or any kept release.
This page mirrors the World Backup to Git wiki on GitHub.