mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-22 08:14:06 +01:00
fix and document backup & restore
This commit is contained in:
parent
667dd1454b
commit
eb41c58405
@ -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
|
||||
```
|
||||
|
@ -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}"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user