docs: update Infrastructure/Backups
This commit is contained in:
parent
4b45241d2e
commit
0e0d68f8c3
1 changed files with 12 additions and 89 deletions
|
|
@ -2,7 +2,7 @@
|
|||
title: Setting Up Kopia
|
||||
description:
|
||||
published: true
|
||||
date: 2026-01-25T19:01:47.656Z
|
||||
date: 2026-01-27T16:19:56.250Z
|
||||
tags:
|
||||
editor: markdown
|
||||
dateCreated: 2026-01-23T22:14:17.009Z
|
||||
|
|
@ -41,96 +41,19 @@ added:
|
|||
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`
|
||||
4. Ran first snapshot: `kopia snapshot create C:\Users\cindy`
|
||||
4. When createing taks for cindy used password Harvey123=
|
||||
|
||||
|
||||
kopia snapshot create C:\Users\cindy
|
||||
|
||||
|
||||
That’s 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 it’s slow or huge, consider excluding:
|
||||
|
||||
kopia policy set `
|
||||
5. To save some space, modify the default policy `kopia policy set `
|
||||
--global `
|
||||
--add-ignore "**\AppData\Local\Temp\**" `
|
||||
--add-ignore "**\AppData\Local\Packages\**"
|
||||
|
||||
What happens next
|
||||
|
||||
Future runs = incremental
|
||||
|
||||
Nightly backups will be much faster
|
||||
|
||||
Repo is deduplicated + encrypted
|
||||
|
||||
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
|
||||
--add-ignore "**\AppData\Local\Packages\**"`
|
||||
Note: When createing tasks for cindy used password Harvey123= (ms password for ms account)
|
||||
6. Create a backup script (recommended)
|
||||
a. Create a folder: C:\scripts
|
||||
b. Create the file: C:\Scripts\kopia-nightly.ps1
|
||||
` # Set repo password (simplest method)
|
||||
$env:KOPIA_PASSWORD = "YOUR_REPOSITORY_PASSWORD"
|
||||
# Run backup
|
||||
kopia snapshot create C:\Users\cindy --progress`
|
||||
7. Schedule this via Task Scheduler
|
||||
|
||||
Split policies (Documents vs everything else)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue