docs: update Infrastructure/Backups

This commit is contained in:
Administrator 2026-01-27 16:20:05 +00:00 committed by John Smith
parent 4b45241d2e
commit 0e0d68f8c3

View file

@ -2,7 +2,7 @@
title: Setting Up Kopia title: Setting Up Kopia
description: description:
published: true published: true
date: 2026-01-25T19:01:47.656Z date: 2026-01-27T16:19:56.250Z
tags: tags:
editor: markdown editor: markdown
dateCreated: 2026-01-23T22:14:17.009Z dateCreated: 2026-01-23T22:14:17.009Z
@ -41,96 +41,19 @@ added:
2. Created user cindy@DESKTOP-QLSVD8P on repository server (password LucyDog123) 2. Created user cindy@DESKTOP-QLSVD8P on repository server (password LucyDog123)
3. On windows - `kopia repo connect server --url=https://192.168.5.10:51515 --override-username=cindy --server-cert-fingerprint=696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2` 3. On windows - `kopia repo connect server --url=https://192.168.5.10:51515 --override-username=cindy --server-cert-fingerprint=696a4999f594b5273a174fd7cab677d8dd1628f9b9d27e557daa87103ee064b2`
4. Ran first snapshot: `kopia snapshot create C:\Users\cindy` 4. Ran first snapshot: `kopia snapshot create C:\Users\cindy`
4. When createing taks for cindy used password Harvey123= 5. To save some space, modify the default policy `kopia policy set `
kopia snapshot create C:\Users\cindy
Thats it — this creates the initial full snapshot.
First run will:
Take the longest
Upload all data
Build indexes
Let it finish.
3⃣ Watch progress (optional)
Kopia is chatty by default, but you can add more detail:
kopia snapshot create C:\Users\cindy --progress
Or quieter:
kopia snapshot create C:\Users\cindy --log-level=info
4⃣ Confirm the snapshot exists
After it completes:
kopia snapshot list
You should see an entry like:
Source: C:\Users\cindy
With a snapshot ID and timestamp.
5⃣ (Strongly recommended) Test a restore
Pick one small file and restore it somewhere safe:
kopia snapshot restore <snapshot-id> `
--target C:\Temp\KopiaRestoreTest
Open the file. If it works, your backup is legit.
Common first-run gotchas (quick fixes)
❗ Permission errors
If you see access denied:
Run PowerShell as Cindy
Or add:
--ignore-permissions
❗ Massive junk folders
If its slow or huge, consider excluding:
kopia policy set `
--global ` --global `
--add-ignore "**\AppData\Local\Temp\**" ` --add-ignore "**\AppData\Local\Temp\**" `
--add-ignore "**\AppData\Local\Packages\**" --add-ignore "**\AppData\Local\Packages\**"`
Note: When createing tasks for cindy used password Harvey123= (ms password for ms account)
What happens next 6. Create a backup script (recommended)
a. Create a folder: C:\scripts
Future runs = incremental b. Create the file: C:\Scripts\kopia-nightly.ps1
` # Set repo password (simplest method)
Nightly backups will be much faster $env:KOPIA_PASSWORD = "YOUR_REPOSITORY_PASSWORD"
# Run backup
Repo is deduplicated + encrypted kopia snapshot create C:\Users\cindy --progress`
7. Schedule this via Task Scheduler
Useful follow-up commands
kopia snapshot diff --latest C:\Users\cindy
kopia snapshot verify
kopia snapshot list --all
If you want next:
Schedule this via Task Scheduler
Split policies (Documents vs everything else) Split policies (Documents vs everything else)