From d8429e37925b40398e5dc979a93861ed76b5cb3c Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 25 Jan 2026 03:09:49 +0000 Subject: [PATCH 1/2] docs: update Infrastructure/Backups --- Infrastructure/Backups.md | 59 ++++++++++++--------------------------- 1 file changed, 18 insertions(+), 41 deletions(-) diff --git a/Infrastructure/Backups.md b/Infrastructure/Backups.md index a69a9ec..6fc42fa 100644 --- a/Infrastructure/Backups.md +++ b/Infrastructure/Backups.md @@ -2,59 +2,36 @@ title: Setting Up Kopia description: published: true -date: 2026-01-23T22:30:11.393Z +date: 2026-01-25T03:09:41.573Z tags: editor: markdown dateCreated: 2026-01-23T22:14:17.009Z --- -# Configure Kopia on ZNAS +## 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:  sudo kopia snapshot create /DockerVol/ - -kopia policy set admin@docker2 --compression zstd +1. Used the gui to create the first repository at /srv/vault/kopia_repository +2. Entered the kopia container on znas `docker exec -it /bin/sh` +3. From the cli inside the container created the user for docker2 `kopia server users add --ask-password admin@docker2` -added cron job -crontab -e + +## Configure Kopia on first client +If this host has been configured before, remove old repository: + - `sudo kopia repository disconnect || true` + - `sudo rm -rf /root/.config/kopia` + +Add new repository: `sudo kopia repo connect server --url=https://192.168.5.10:51515 --override-username=admin --server-cert-fingerprint=696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2` +Create snapshot: `sudo kopia snapshot create /DockerVol/` + +Add cronjob:` crontab -e added: -*/180 * * * * /usr/bin/kopia snapshot create /DockerVol >> /var/log/kopia-cron.log 2>&1 +*/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 -  \ No newline at end of file From f78e79684a869f3c8c6d2e22aece72c9718c703d Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 25 Jan 2026 03:12:17 +0000 Subject: [PATCH 2/2] docs: update Infrastructure/Backups --- Infrastructure/Backups.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Infrastructure/Backups.md b/Infrastructure/Backups.md index 6fc42fa..bdcc864 100644 --- a/Infrastructure/Backups.md +++ b/Infrastructure/Backups.md @@ -2,7 +2,7 @@ title: Setting Up Kopia description: published: true -date: 2026-01-25T03:09:41.573Z +date: 2026-01-25T03:12:09.537Z tags: editor: markdown dateCreated: 2026-01-23T22:14:17.009Z @@ -21,14 +21,15 @@ SERVER CERT SHA256: 696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee0 ## Configure Kopia on first client -If this host has been configured before, remove old repository: + +1. Use wget to get the kopia apt package and install on client +2. use dpkg to install on client +3. If this host has been configured before, remove old repository: - `sudo kopia repository disconnect || true` - `sudo rm -rf /root/.config/kopia` - -Add new repository: `sudo kopia repo connect server --url=https://192.168.5.10:51515 --override-username=admin --server-cert-fingerprint=696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2` -Create snapshot: `sudo kopia snapshot create /DockerVol/` - -Add cronjob:` crontab -e +4. Add new repository: `sudo kopia repo connect server --url=https://192.168.5.10:51515 --override-username=admin --server-cert-fingerprint=696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2 +5. Create snapshot: `sudo kopia snapshot create /DockerVol/` +6. Add cronjob:` crontab -e added: */180 * * * * /usr/bin/kopia snapshot create /DockerVol >> /var/log/kopia-cron.log 2>&1`