Skip to content

Add Windows Specific Code To Run Commands With Powershell - #431

Open
Martin2112 wants to merge 3 commits into
cupcakearmy:masterfrom
Martin2112:windows_shell
Open

Add Windows Specific Code To Run Commands With Powershell#431
Martin2112 wants to merge 3 commits into
cupcakearmy:masterfrom
Martin2112:windows_shell

Conversation

@Martin2112

@Martin2112 Martin2112 commented Feb 25, 2025

Copy link
Copy Markdown

For Windows, run commands with PowerShell -Command and the window the command runs in hidden. I've tested this running backups with hooks and it seems to work.

Also default the executable to "./restic" as Windows shells typically don't search the current directory. This default can still be overridden with the --restic-bin flag.

Should have no effect on other platforms.

Towards #68.

@vercel

vercel Bot commented Feb 25, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autorestic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 25, 2025 4:05pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant