Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows Specific Code To Run Commands With Powershell #431

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Martin2112
Copy link

@Martin2112 Martin2112 commented Feb 25, 2025

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.

Copy link

vercel bot commented Feb 25, 2025

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