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 feature to control backups on metered connections #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

innovara
Copy link

restic-windows-backup runs backups irrespective of the host being on a metered connection or unrestricted. That can lead to situations in which the backup takes place when the user is on a metered connection and would rather not do it at that time, either because they would incur costs or use up their data allowance.

While the diff may seem to introduce many changes in Invoke-Main, it's actually a handful of lines for the if and else and the rest is purely changes to indentation of the existing code.

The default value of $BackupOnMeteredNetwork is set to $false following a conservative approach. It could also be set to $true to mirror what's currently happening.

Closes #82

restic-windows-backup runs backups irrespective of the host being on a metered connection or unrestricted. That can lead to situations in which the backup takes place when the user is on a metered connection and would rather not do it at that time, either because they would incur costs or use up their data allowance.

The default value of $BackupOnMeteredNetwork is set to $false following a conservative approach.

Closes kmwoley#82

Signed-off-by: Manuel Fombuena <[email protected]>
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.

Don't run on metered connection
1 participant