From aec2d9a470e486c816a0530def79c9bd39e4dfe8 Mon Sep 17 00:00:00 2001 From: DoTheEvo Date: Tue, 5 Sep 2023 12:39:36 +0200 Subject: [PATCH] update --- kopia_backup/readme.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kopia_backup/readme.md b/kopia_backup/readme.md index dbcfb61..358f9e4 100644 --- a/kopia_backup/readme.md +++ b/kopia_backup/readme.md @@ -309,14 +309,18 @@ logged out. Since KopiaUI works only if user is logged in. ### VSS snapshots -To make use of VSS snapshots before running backup execute these two commands, -replacing `C:\Test` with the snapshot target path.
+Volume Shadow Copy Service freezes the state of the disk in time and makes +this snapshot available to use. This is what allows backup of files that are in use.
+[Here's some youtube video on VSS.](https://youtu.be/RUwocwP2ilI?t=85) -* `kopia policy set C:\Test --before-folder-action "powershell -WindowStyle Hidden C:\Kopia\win_vss_before.ps1"` -* `kopia policy set C:\Test --after-folder-action "powershell -WindowStyle Hidden C:\Kopia\win_vss_after.ps1"` +To make use of this feature edit `kopia_backup_scipt.ps1` changing +`$USE_SHADOW_COPY = $false` to `$USE_SHADOW_COPY = $true` Note the use of `--enable-actions` in the backup script `kopia_backup_scipt.ps1`, -which is required for actions to work. +which is required for before/after actions to work. + +To test if its working, one can execute command `vssadmin list shadows` +to see current VSS snapshots and then execute it again during the backup. ### Kopia install using scoop, machine-wide