garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.72k stars 50 forks source link

docs: add Windows PowerShell hook examples #567

Closed homandr closed 1 week ago

CLAassistant commented 1 week ago

CLA assistant check
All committers have signed the CLA.

garethgeorge commented 1 week ago

Thanks for contributing the sample -- this looks great & really neat to see scripting used this way on Windows.

Also motivated me to take another look at why commands are executing inconsistently on windows (needing extra newlines). I think I was missing the -Command - flag to tell powershell it's being scripted. Possibly fixed in https://github.com/garethgeorge/backrest/pull/569 but it's quite late so I'll test on my windows install tomorrow.

LGTM and merged.