fix and document backup & restore

This commit is contained in:
Jörg Thalheim 2023-10-24 18:49:26 +02:00 committed by mergify[bot]
parent 667dd1454b
commit eb41c58405
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
# nixos-wiki-infra
This project contains everything to setup yourself a mirror of https://nixos.wiki/
After installing run:
```
systemctl start wiki-backup.service && systemctl start wiki-restore
```

View File

@ -55,6 +55,7 @@ in
serviceConfig = {
ExecStart = [
"${pkgs.coreutils}/bin/mkdir -p /var/backup"
"${pkgs.wget}/bin/wget https://nixos.wiki/images/wikidump.xml.gz -O ${wikiDump}.new"
"${pkgs.coreutils}/bin/mv ${wikiDump}.new ${wikiDump}"
];