The Send-MailMessage cmdlet is obsolete. It doesn't guarantee secure connections to SMTP servers.
Use Send-MailKitMessage module instead.
Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
Co-authored-by: Kevin Woley <kmwoley@users.noreply.github.com>
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 https://github.com/kmwoley/restic-windows-backup/issues/82
Signed-off-by: Manuel Fombuena <fombuena@outlook.com>
* Limit snapshot pruning to the current host
Address #70 by only pruning snapshots from the current host by default when performing maintenance. This avoids inadvertently pruning snapshots from other hosts when that might not be desired.
* add back 'host' to group-by
I think it's safer to keep `--group-by 'host,tags'` even if the `--host` parameter is provided. This makes sure that the `forget` always groups together snapshots from the same host. It may be unneeded.
---------
Co-authored-by: Kevin Woley <kmwoley@users.noreply.github.com>
* $SnapshotDeepMaintenanceDays = $null disables deep data checks
* updated install binary links to v0.14
* add config point for additional backup parameters
* - backup and maintenance run independently
- fixed issues with several incorrect function return values
* check for new version of restic during maintenance
* removing duplicate excludes, resolves#60
* update restic .exe version
add self-update to the install script
* Release 1.6 Changelog updates
- when $true, missing external drives or folders don't produce errors
- when $null or $false, missing drives and/or folders result in an error
- Default is set ot $false as not to silently fail backing up a source
- select backup source by drive label, device name, or serial number
- fix forget policy to be safe for multiple drives (group by host,tags)
- tag each backup source with drive/source name