Netgrimoire/Infrastructure/Backups.md
2026-01-23 22:30:19 +00:00

60 lines
No EOL
1.3 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Setting Up Kopia
description:
published: true
date: 2026-01-23T22:30:11.393Z
tags:
editor: markdown
dateCreated: 2026-01-23T22:14:17.009Z
---
# Configure Kopia on ZNAS
Installed docker on ZNAS
set repository to
## Notes from Joplin
Installed Kopia Docker on NAS
SERVER CERT SHA256: 696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2
Setup first repository
used wget to get the kopia apt package and install on Docker1
use dpkg to install on docker1
\- Create a user in the docker container by using docker exec to enter it, then run 
```bash
kopia server user add admin@docker1
```
 Connect from docker host :  
```
kopia repo connect server --url=https://192.168.5.12:51515 --override-username=admin --server-cert-fingerprint=696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2
```
DO the firsts snapshot:  <span style="color: #000000;">sudo kopia snapshot create /DockerVol/</span>
<span style="color: #000000;"><span style="color: #000000;">kopia policy set admin@docker2 --compression zstd</span></span>
added cron job
crontab -e
added:
*/180 * * * * /usr/bin/kopia snapshot create /DockerVol >> /var/log/kopia-cron.log 2>&1
restored one file: kopia snapshot restore ke1ee8edc7da8be14f29f8dd7d6dfb24c/windows7/data.img /repository/data.img
&nbsp;